babel-preset-packez

1.5.1 • Public • Published

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

Package Sidebar

Install

npm i babel-preset-packez

Weekly Downloads

13

Version

1.5.1

License

MIT

Unpacked Size

8.06 kB

Total Files

4

Last publish

Collaborators

  • bplok20010