babel-plugin-transform-async-to-generator-2
v0.0.3
Published
A fork of babel-plugin-transform-async-to-generator, with a little difference that this plugin keeps the original parameter names of an async function.
Downloads
85
Readme
babel-plugin-transform-async-to-generator-2
A fork of babel-plugin-transform-async-to-generator
, with a little difference that this plugin keeps the original parameter names of an async function.
Installation
$ npm install babel-plugin-transform-async-to-generator-2
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["transform-async-to-generator-2"]
}
Via CLI
$ babel --plugins transform-async-to-generator-2 script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["transform-async-to-generator-2"]
});