W3cubDocs

/Babel

Stage 0 preset

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

This preset includes the following plugins:

And all plugins from presets:

Install

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

Usage

.babelrc

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

Via CLI

babel script.js --presets stage-0

Via Node API

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

© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/preset-stage-0/