1.0.0 • Published 9 years ago
babel-preset-stage-0-without-async v1.0.0
babel-preset-stage-0-without-async
Use stage-0 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-0 babel-preset-stage-0-without-asyncUsage
Via .babelrc (Recommended)
.babelrc
{
"presets": ["stage-0-without-async"]
}Via CLI
babel script.js --presets stage-0-without-asyncVia Node API
require('babel-core').transform('code', {
presets: ['stage-0-without-async']
});License
MIT © Cap32
1.0.0
9 years ago