Skip to content

Latest commit

 

History

History
 
 

babel-preset-stage-1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

babel-preset-stage-1

Babel preset for stage 1 plugins.

Install

$ npm install --save-dev babel-preset-stage-1

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["stage-1"]
}

Via CLI

$ babel script.js --presets stage-1

Via Node API

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