Package Exports
- babel-preset-es2017
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-preset-es2017) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-preset-es2017
[]
(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.
Install
$ npm install --save babel-preset-es2017
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es2017"]
}
Via CLI
$ babel script.js --presets es2017
Via Node API
require("babel-core").transform("code", {
presets: ["es2017"]
});
ES2017 (incl. stage 3), ES2016/ES7, ES2015/ES6, ES5.x support
ES2017 (incl. stage 3)
Support for stage4/stage3 proposals:
- SIMD.JS
- Async Functions | transform-async-to-generator, syntax-async-functions
- Object.values/Object.entries | es7.object.values, es7.object.entries
- String padding
- Trailing commas in function parameter lists and calls
- Object.getOwnPropertyDescriptors
ES2016 / ES6
- Array.prototype.includes | array-includes
- Exponentiation Operator (
**
) | transform-exponentiation-operator
ES2015 / ES6
TODO: describe support
ES5
TODO: describe support
Documentation:
Related projects:
- 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