chensenlai 10988628a0 语音房项目初始化 | 5 lat temu | |
---|---|---|
.. | ||
lib | 5 lat temu | |
.npmignore | 5 lat temu | |
README.md | 5 lat temu | |
package.json | 5 lat temu |
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"]
});