[] (https://travis-ci.org/bettiolo/babel-preset-es2017) [] (https://david-dm.org/bettiolo/babel-preset-es2017) [] (https://www.npmjs.com/package/babel-preset-es2017) [] (https://github.com/bettiolo/babel-preset-es2017/blob/master/package.json) [] (https://github.com/bettiolo/babel-preset-es2017/blob/master/LICENSE)
Babel preset to use ES2015, ES2016 and ES2017 (incl. stage 3) with Node 5.x.
$ npm install --save babel-preset-es2017
.babelrc
{
"presets": ["es2017"]
}
$ babel script.js --presets es2017
require("babel-core").transform("code", {
presets: ["es2017"]
});
Support for stage4/stage3 proposals:
- SIMD.JS
- Async Functions | transform-async-to-generator, syntax-async-functions
- Object.values/Object.entries
- String padding
- Trailing commas in function parameter lists and calls
- Object.getOwnPropertyDescriptors
- Array.prototype.includes | array-includes
- Exponentiation Operator | transform-exponentiation-operator
TODO: describe support
TODO: describe support
- https://github.com/babel/babel/tree/master/packages/babel-preset-es2015
- https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0
- https://github.com/babel/babel/tree/master/packages/babel-preset-stage-1
- https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2
- https://github.com/babel/babel/tree/master/packages/babel-preset-stage-3
- https://github.com/babel/babel/tree/master/packages/babel-preset-react
- https://github.com/jbach/babel-preset-es2015-node4
- https://github.com/alekseykulikov/babel-preset-es2015-node5
- https://github.com/leebenson/babel-preset-node5
- https://github.com/rtsao/babel-preset-es2015-node
- https://github.com/colinbate/babel-preset-es2015-node-plus
- https://github.com/MattMcFarland/babel-preset-bleeding
- https://github.com/airbnb/babel-preset-airbnb