Icard/angular-clarity-master(work.../node_modules/regenerator-transform
realSnehal 336a6a07d0 frnt 2024-07-16 20:53:22 +05:30
..
lib frnt 2024-07-16 20:53:22 +05:30
src frnt 2024-07-16 20:53:22 +05:30
LICENSE frnt 2024-07-16 20:53:22 +05:30
README.md frnt 2024-07-16 20:53:22 +05:30
package.json frnt 2024-07-16 20:53:22 +05:30

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"]
});