babel-preset-stage-0
The gist of Stage 0 is:
Stage 0: strawman
What is it? A free-form way of submitting ideas for evolving ECMAScript. Submissions must come either from a TC39 member or a non-member who has registered as a TC39 contributor.
What’s required? The document must be reviewed at a TC39 meeting (source) and is then added to the page with stage 0 proposals.
This preset includes the following plugins:
And all plugins from presets:
You can check the src/index.js to be sure the plugins used.
Install
npm install --save-dev babel-preset-stage-0
Usage
.babelrc
(Recommended)
Via .babelrc
{
"presets": ["stage-0"]
}
Via CLI
babel script.js --presets stage-0
Via Node API
require("babel-core").transform("code", {
presets: ["stage-0"]
});
References
- Chapter "The TC39 process for ECMAScript features" in "Exploring ES2016 and ES2017" by Axel Rauschmayer