babel-preset-es2015-native-generators
v6.6.0
Published
Babel ES2015 preset leveraging native generators support instead of regenerator
Downloads
283
Readme
babel-preset-es2015-native-generators
Babel preset for all es2015 plugins except transform-regenerator is replaced by transform-async-to-generator
Install
$ npm install --save-dev babel-preset-es2015-native-generators
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es2015-native-generators"]
}
Via CLI
$ babel script.js --presets es2015-native-generators
Via Node API
require("babel-core").transform("code", {
presets: ["es2015-native-generators"]
});