babel-preset-playlyfe
v4.1.0
Published
Babel preset for playlyfe
Downloads
48
Maintainers
Readme
babel-preset-playlyfe
Babel preset for Javascript(es2015, es2016) React projects.
Install
$ npm install --save-dev babel-preset-playlyfe
$ yarn add --dev babel-preset-playlyfe
Usage
// .babelrc
{
"presets": ["playlyfe", options]
}
Options
flow
- bool (default true) Enable flow support.modules
- 'amd' | 'umd' | 'systemjs' | 'commonjs' | false (default 'commonjs').targets
- same as babel-preset-env targets optionuseBuiltIns
- (default: true) same as babel-preset-env useBuiltIns optionasyncAwait
- bool (default false) Enable async-await support (Note: need regeneratorRuntime).react
- bool (default true) Enable react support.reactIntl
- bool (default true) Enable react-intl support.babelRuntime
- bool (default true) Enable babel-plugin-transform-runtime plugin.development
- bool (default false) to enable dev mode