Skip to content

Latest commit

 

History

History
 
 

plugin-babel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@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"]
}

Default Build Script

{
  // Matches all ".js", ".jsx", ".ts", and ".tsx" files
  "scripts": {"build:js,jsx,ts,tsx": "@snowpack/plugin-babel"}
}

You can override this by setting your own "@snowpack/plugin-babel" build script.

Plugin Options

None