babel-preset-stage-2-without-async
Use stage-2 Babel features without transform-async-generator-functions
.
There's no need to transform async
to generator-functions
on Node.js >= v7.6
.
Installation
Installation requires installing a peer dependence.
yarn add -D babel-preset-stage-2 babel-preset-stage-2-without-async
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["stage-2-without-async"]
}
Via CLI
babel script.js --presets stage-2-without-async
Via Node API
require('babel-core').transform('code', {
presets: ['stage-2-without-async']
});
License
MIT © Cap32