Babel preset including es2015, es2016, es2017.
$ npm install --save-dev babel-preset-latest
.babelrc
{
"presets": ["latest"]
}
$ babel script.js --presets latest
require("babel-core").transform("code", {
presets: ["latest"]
});
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Babel preset including es2015, es2016, es2017.
$ npm install --save-dev babel-preset-latest
.babelrc
{
"presets": ["latest"]
}
$ babel script.js --presets latest
require("babel-core").transform("code", {
presets: ["latest"]
});