Skip to content

nil-build/babel-preset-packez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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