Babel preset for Javascript(es2015, es2016) React projects.
$ npm install --save-dev babel-preset-playlyfe
$ yarn add --dev babel-preset-playlyfe
// .babelrc
{
"presets": ["playlyfe", options]
}
-
flow
- bool (default true) Enable flow support. -
modules
- 'amd' | 'umd' | 'systemjs' | 'commonjs' | false (default 'commonjs'). -
targets
- same as babel-preset-env targets option -
useBuiltIns
- (default: true) same as babel-preset-env useBuiltIns option -
asyncAwait
- 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