@snowpack/plugin-babel
@snowpack/plugin-babel
npm i @snowpack/plugin-babel
@snowpack/plugin-babel

@snowpack/plugin-babel

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️

by withastro

2.1.7 (see all)License:MITTypeScript:Not Found
npm i @snowpack/plugin-babel
Readme

@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

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

Downloads/wk

3.9K

GitHub Stars

19.5K

LAST COMMIT

NaNyrs ago

MAINTAINERS

2

CONTRIBUTORS

0

OPEN ISSUES

301

OPEN PRs

27
VersionTagPublished
2.1.7
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate