Stage 2 preset

All you need to use stage 2 (and greater) plugins

This preset includes the following plugins:

And all plugins from presets:

Install

npm install --save-dev babel-preset-stage-2

Usage

.babelrc

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

Via CLI

babel script.js --presets stage-2

Via Node API

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