@snowpack/plugin-babel

    2.1.7 • Public • Published

    @snowpack/plugin-babel

    Use Babel to build your files from source. Automatically inherits from your local project .babelrc or babel.config.json files.

    npm install --save-dev @snowpack/plugin-babel
    
    // snowpack.config.json
    {
      "plugins": [
        [
          "@snowpack/plugin-babel",
          {
            "input": ['.js', '.mjs', '.jsx', '.ts', '.tsx'], // (optional) specify files for Babel to transform
            transformOptions: {
              // babel transform options
            }
          }
        ]
      ]
    }

    Plugin Options

    Name Type Description
    input string[] (optional) By default, Babel scans & transfoms these extensions: ['.js', '.mjs', '.jsx', '.ts', '.tsx']. Modify this array if you’d like to change this.
    transformOptions object (optional) See https://babeljs.io/docs/en/options

    Keywords

    none

    Install

    npm i @snowpack/plugin-babel

    DownloadsWeekly Downloads

    9,321

    Version

    2.1.7

    License

    MIT

    Unpacked Size

    9.98 kB

    Total Files

    6

    Last publish

    Collaborators

    • fredkschott
    • drewpowers