index.js 448 B

123456789101112131415
  1. // TODO(Babel 8): Remove this file.
  2. var runtime = require("../helpers/regeneratorRuntime")();
  3. module.exports = runtime;
  4. // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
  5. try {
  6. regeneratorRuntime = runtime;
  7. } catch (accidentalStrictMode) {
  8. if (typeof globalThis === "object") {
  9. globalThis.regeneratorRuntime = runtime;
  10. } else {
  11. Function("r", "regeneratorRuntime = r")(runtime);
  12. }
  13. }