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
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins transform-async-to-generator-2 script.js
Via Node API
;