Install
babel-plugin-transform-async-functions
Compile async functions to ES5
Installation
$ npm install babel-plugin-transform-async-functions
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["transform-async-functions"]
}
Via CLI
$ babel --plugins transform-async-functions script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["transform-async-functions"]
});