1.5.1 • Published 2 years ago

babel-preset-packez v1.5.1

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

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,
}

详细:transform-runtime


注:如果需要关闭strictMode,可参考: https://babeljs.io/docs/en/babel-plugin-transform-strict-mode