google_forms/node_modules/regenerator-transform
RameshT f9bc85d5f8 Your commit message 2024-08-09 17:34:48 +05:30
..
lib Your commit message 2024-08-09 17:34:48 +05:30
src Your commit message 2024-08-09 17:34:48 +05:30
LICENSE Your commit message 2024-08-09 17:34:48 +05:30
README.md Your commit message 2024-08-09 17:34:48 +05:30
package.json Your commit message 2024-08-09 17:34:48 +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"]
});