@chialab/esbuild-plugin-babel
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

Esbuild Plugin Babel • A pluggable esbuild plugin that runs babel for es5 transpilation.

NPM


Install

npm i @chialab/esbuild-plugin-babel -D
yarn add @chialab/esbuild-plugin-babel -D

Usage

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.

/@chialab/esbuild-plugin-babel/

    Package Sidebar

    Install

    npm i @chialab/esbuild-plugin-babel

    Weekly Downloads

    86

    Version

    0.18.0

    License

    MIT

    Unpacked Size

    7.81 kB

    Total Files

    5

    Last publish

    Collaborators

    • chialab-admin
    • chialab-developers