Skip to content

Latest commit

 

History

History
 
 

babel-preset-latest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

babel-preset-latest

Babel preset including es2015, es2016, es2017.

Install

$ npm install --save-dev babel-preset-latest

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["latest"]
}

Via CLI

$ babel script.js --presets latest

Via Node API

require("babel-core").transform("code", {
  presets: ["latest"]
});