NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/babel-plugin-syntax-async-functions
2023-09-14 14:47:11 +08:00
..
lib 111 2023-09-14 14:47:11 +08:00
.npmignore 111 2023-09-14 14:47:11 +08:00
package.json 111 2023-09-14 14:47:11 +08:00
README.md 111 2023-09-14 14:47:11 +08:00

babel-plugin-syntax-async-functions

Allow parsing of async functions.

Installation

$ npm install babel-plugin-syntax-async-functions

Usage

.babelrc

{
  "plugins": ["syntax-async-functions"]
}

Via CLI

$ babel --plugins syntax-async-functions script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-async-functions"]
});