babel-preset-movio
Babel preset recommended at Movio.
Install
$ npm install --save-dev babel-preset-movio
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel script.js --presets movio
Via Node API
;
Plugin list
Syntax plugins
Transform plugins
- es2015-arrow-functions
- es2015-block-scoped-functions
- es2015-block-scoping
- es2015-classes
- es2015-computed-properties
- es2015-destructuring
- es2015-for-of
- es2015-function-name
- es2015-literals
- es2015-modules-commonjs
- es2015-object-super
- es2015-parameters
- es2015-shorthand-properties
- es2015-spread
- es2015-sticky-regex
- es2015-template-literals
- es2015-typeof-symbol
- es2015-unicode-regex
- exponentiation-operator
- export-extensions
- async-to-generator
- object-rest-spread
- strict-mode
- inline-environment-variables
- merge-sibling-variables
- minify-booleans
- react-jsx
- property-literals
- regenerator
- class-properties
Note The regenerator
transform plugin requires either the Babel Polyfill or the regenerator runtime to work.
Recommended plugins for production (if using React. Not included in preset)