Use stage-3 Babel features without `transform-async-generator-functions`
npm install babel-preset-stage-3-without-asynctransform-async-generator-functions.There's no need to transform async to generator-functions on Node.js >= v7.6.
Installation requires installing a peer dependence.
``sh`
yarn add -D babel-preset-stage-3 babel-preset-stage-3-without-async
.babelrc
`json`
{
"presets": ["stage-3-without-async"]
}
`sh`
babel script.js --presets stage-3-without-async
`javascript``
require('babel-core').transform('code', {
presets: ['stage-3-without-async']
});
MIT © Cap32