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