All you need to use stage 0 (and greater) plugins
This preset includes the following plugins:
And all plugins from presets:
npm install --save-dev babel-preset-stage-0
.babelrc (Recommended).babelrc
{
"presets": ["stage-0"]
}
babel script.js --presets stage-0
require("babel-core").transform("code", {
presets: ["stage-0"]
});
© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/preset-stage-0/