babel-preset-packez
v1.5.1
Published
## Install & Usage
Downloads
153
Maintainers
Readme
babel-preset-packez
Install & Usage
npm install --save-dev babel-preset-packez{
"presets": ["babel-preset-packez"]
}Options
modules
"amd" | "umd" | "systemjs" | "commonjs" | "cjs" | "auto" | false, defaults to "cjs".
Enable transformation of ES6 module syntax to another module type.
Setting this to false will not transform modules.
Also note that cjs is just an alias for commonjs.
runtimeOptions
object
defaults to
{
corejs: false,
helpers: true,
regenerator: true,
absoluteRuntime: false,
}注:如果需要关闭strictMode,可参考: https://babeljs.io/docs/en/babel-plugin-transform-strict-mode
