How to use the regenerator-transform.default function in regenerator-transform

To help you get started, we’ve selected a few regenerator-transform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebook / regenerator / packages / regenerator-preset / index.js View on Github external
/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

module.exports = {
  plugins: [
    require("@babel/plugin-syntax-async-generators"),
    require("@babel/plugin-proposal-function-sent"),
    require("@babel/plugin-transform-classes"),
    require("@babel/plugin-transform-arrow-functions"),
    require("@babel/plugin-transform-block-scoping"),
    require("@babel/plugin-transform-for-of"),
    require("regenerator-transform").default
  ]
};

regenerator-transform

Explode async and generator functions into a state machine.

MIT
Latest version published 1 year ago

Package Health Score

77 / 100
Full package analysis

Popular regenerator-transform functions