Package Exports
- @chialab/esbuild-plugin-babel
- @chialab/esbuild-plugin-babel/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chialab/esbuild-plugin-babel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Esbuild Plugin Babel • A pluggable esbuild plugin that runs babel for es5 transpilation.
Install
$ npm i @chialab/esbuild-plugin-babel -D
$ yarn add @chialab/esbuild-plugin-babel -DUsage
import esbuild from 'esbuild';
import babelPlugin from '@chialab/esbuild-plugin-babel';
await esbuild.build({
plugins: [
babelPlugin({
plugins: [...],
}),
],
});Please not that it already includes typescript syntax support, the env preset and supports the transpilation of tagged templates with htm to JSX.
License
Esbuild Plugin Babel is released under the MIT license.