$ npm install babel-plugin-syntax-async-functions
Allow parsing of async functions.
$ npm install babel-plugin-syntax-async-functions
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-async-functions"]
}
$ babel --plugins syntax-async-functions script.js
require("babel-core").transform("code", {
plugins: ["syntax-async-functions"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE