babel-plugin-transform-async-to-module-method
Turn async functions into a Bluebird coroutine
Example
In
{ await ;}
Out
var Bluebird = ; var foo = Bluebird;
Installation
npm install --save-dev babel-plugin-transform-async-to-module-method
Usage
.babelrc
(Recommended)
Via .babelrc
Without options:
With options:
Via CLI
babel --plugins transform-async-to-module-method script.js
Via Node API
;