babel-preset-latest-node6
v0.1.1
Published
Babel preset including es2015-node6, es2016, es2017
Downloads
7
Maintainers
Readme
babel-preset-latest-node6
Babel preset including es2015-node6, es2016, es2017.
Install
$ npm install --save-dev babel-preset-latest-node6
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["latest-node6"]
}
Via CLI
$ babel script.js --presets latest-node6
Via Node API
require("babel-core").transform("code", {
presets: ["latest-node6"]
});
Options
object-rest
: Usees2015-node6/object-rest
instead ofes2015-node6
. (See this) (Disabled by default)es2015
: Enablees2015-node6
transformations, you can set object to passes2015
options. (Enabled by default)es2016
: Enablees2016
transformations. (Enabled by default)es2017
: Enablees2017
transformations. (Enabled by default)
{
presets: [
["latest-node6", {
"object-rest": true,
"es2015": { loose: true },
"es2016": false,
"es2017": false,
}]
]
}