babel-preset-stage-1-without-async
v1.0.0
Published
Use stage-1 Babel features without `transform-async-generator-functions`
Downloads
4
Readme
babel-preset-stage-1-without-async
Use stage-1 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-1 babel-preset-stage-1-without-async
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["stage-1-without-async"]
}
Via CLI
babel script.js --presets stage-1-without-async
Via Node API
require('babel-core').transform('code', {
presets: ['stage-1-without-async']
});
License
MIT © Cap32