1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/regenerator-transform
詹力 1a19ec897f 删除无关模块 2024-01-16 21:26:16 +08:00
..
lib 删除无关模块 2024-01-16 21:26:16 +08:00
src 删除无关模块 2024-01-16 21:26:16 +08:00
LICENSE i4 2023-12-18 13:12:25 +08:00
README.md i4 2023-12-18 13:12:25 +08:00
package.json 删除无关模块 2024-01-16 21:26:16 +08:00

README.md

regenerator-transform

Transform async/generator functions with regenerator

Installation

$ npm install regenerator-transform

Usage

.babelrc

// without options
{
  "plugins": ["regenerator-transform"]
}
// with options
{
  "plugins": [
    ["regenerator-transform", {
      asyncGenerators: false, // true by default
      generators: false, // true by default
      async: false // true by default
    }]
  ]
}

Via CLI

$ babel --plugins regenerator-transform script.js

Via Node API

require("@babel/core").transformSync("code", {
  plugins: ["regenerator-transform"]
});