magefront-plugin-babel
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

magefront-plugin-babel

Transpile JS files with Babel.

Install

npm i magefront-plugin-babel @babel/core @babel/preset-env

Usage

import babel from 'magefront-plugin-babel'

export default {
  plugins: [
    babel({
      src: 'js/source/**/*.js',
      compilerOptions: { presets: ['@babel/preset-env'] },
    }),
  ],
}

See the documentation for more information.

/magefront-plugin-babel/

    Package Sidebar

    Install

    npm i magefront-plugin-babel

    Weekly Downloads

    1

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    3.39 kB

    Total Files

    5

    Last publish

    Collaborators

    • ubermanu