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