JSPM

  • Created
  • Published
  • Downloads 62093
  • Score
    100M100P100Q17189F
  • License MIT

Babel preset to use ES2015, ES2016 and ES2017 (incl. stage 3) with Node 5.x

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

[Build status] (https://travis-ci.org/bettiolo/babel-preset-es2017) [Dependency status] (https://david-dm.org/bettiolo/babel-preset-es2017) [npm version] (https://www.npmjs.com/package/babel-preset-es2017) [node version] (https://github.com/bettiolo/babel-preset-es2017/blob/master/package.json) [npm license] (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

$ npm install --save babel-preset-es2017

Usage

.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:

ES2016 / ES6

ES2015 / ES6

TODO: describe support

ES5

TODO: describe support

Documentation: