2.1.7 • Published 3 years ago
@snowpack/plugin-babel v2.1.7
@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 |
2.1.7
3 years ago
2.1.6
3 years ago
2.1.5
3 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.4.0
4 years ago
1.0.0
4 years ago
0.8.0
4 years ago
0.7.0
4 years ago
0.6.2
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.6
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago