Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 393 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 393 Bytes

babel-preset-es2017

Babel preset for all es2017 plugins.

Install

$ npm install --save-dev 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"]
});