@snowpack/plugin-babel
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "@snowpack/plugin-babel", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "plugin.js", | ||
@@ -12,3 +12,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "3e873397e5093fbfeec88c70a8088f3ee73cc15d" | ||
"gitHead": "020489d90f2d937be1048498de2a9ea209cdd312" | ||
} |
@@ -28,2 +28,3 @@ const fs = require('fs'); | ||
compact: false, | ||
...(options.transformOptions || {}), | ||
}); | ||
@@ -30,0 +31,0 @@ let code = result.code; |
@@ -16,3 +16,6 @@ # @snowpack/plugin-babel | ||
{ | ||
"input": ['.js', '.mjs', '.jsx', '.ts', '.tsx'] // (optional) specify files for Babel to transform | ||
"input": ['.js', '.mjs', '.jsx', '.ts', '.tsx'], // (optional) specify files for Babel to transform | ||
transformOptions: { | ||
// babel transform options | ||
} | ||
} | ||
@@ -29,1 +32,2 @@ ] | ||
| `input` | `string[]` | (optional) By default, Babel scans & transfoms these extensions: `['.js', '.jsx', '.ts', '.tsx']`. Modify this array if you’d like to change this. | | ||
| `transformOptions` | `object` | (optional) See [https://babeljs.io/docs/en/options](https://babeljs.io/docs/en/options) | |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3910
39
32
1