1.2.1 • Published 8 years ago
babel-preset-movio v1.2.1
babel-preset-movio
Babel preset recommended at Movio.
Install
$ npm install --save-dev babel-preset-movio
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["movio"]
}
// With ES2015 preset options
{
"presets": ["movio", { "es2015": { "modules": false, "loose": true } }]
}
Via CLI
$ babel script.js --presets movio
Via Node API
require("babel-core").transform("code", {
presets: ["movio"]
});
Preset list
Plugin list
- async-generator-functions
- class-properties
- export-extensions
- function-bind
- object-rest-spread
- regenerator
Note The regenerator
transform plugin requires either the Babel Polyfill or the regenerator runtime to work.