babel-plugin-transform-es2015-generator-return
v1.2.2
Published
Patch Generator.prototype.return for V8
Downloads
32
Maintainers
Readme
babel-plugin-transform-es2015-generator-return
Patch ES2015 Generator.prototype.return method for V8
Why this plugin
See https://github.com/alekseykulikov/babel-preset-es2015-node5/issues/3
Installation
npm install babel-plugin-transform-es2015-generator-return
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["transform-es2015-generator-return"]
}
Via CLI
babel --plugins transform-es2015-generator-return
Via Node API
require("babel-core").transform("code", {
plugins: ["transform-es2015-generator-return"]
})