Skip to content

Commit

Permalink
Updates after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 25, 2021
1 parent 439c25e commit 8d8fd33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/babel-polyfills.js.flow
@@ -1,9 +1,9 @@
declare module "babel-plugin-polyfill-regenerator" {
declare module.exports: Function;
declare module.exports: { default: Function };
}
declare module "babel-plugin-polyfill-corejs2" {
declare module.exports: Function;
declare module.exports: { default: Function };
}
declare module "babel-plugin-polyfill-corejs3" {
declare module.exports: Function;
declare module.exports: { default: Function };
}
9 changes: 6 additions & 3 deletions packages/babel-plugin-transform-runtime/src/index.js
Expand Up @@ -5,9 +5,12 @@ import { types as t } from "@babel/core";
import { hasMinVersion } from "./helpers";
import getRuntimePath from "./get-runtime-path";

import pluginCorejs2 from "babel-plugin-polyfill-corejs2";
import pluginCorejs3 from "babel-plugin-polyfill-corejs3";
import pluginRegenerator from "babel-plugin-polyfill-regenerator";
import _pluginCorejs2 from "babel-plugin-polyfill-corejs2";
import _pluginCorejs3 from "babel-plugin-polyfill-corejs3";
import _pluginRegenerator from "babel-plugin-polyfill-regenerator";
const pluginCorejs2 = _pluginCorejs2.default;
const pluginCorejs3 = _pluginCorejs3.default;
const pluginRegenerator = _pluginRegenerator.default;

const pluginsCompat = "#__secret_key__@babel/runtime__compatibility";

Expand Down
9 changes: 6 additions & 3 deletions packages/babel-preset-env/src/index.js
Expand Up @@ -16,9 +16,12 @@ import overlappingPlugins from "@babel/compat-data/overlapping-plugins";
import removeRegeneratorEntryPlugin from "./polyfills/regenerator";
import legacyBabelPolyfillPlugin from "./polyfills/babel-polyfill";

import pluginCoreJS2 from "babel-plugin-polyfill-corejs2";
import pluginCoreJS3 from "babel-plugin-polyfill-corejs3";
import pluginRegenerator from "babel-plugin-polyfill-regenerator";
import _pluginCoreJS2 from "babel-plugin-polyfill-corejs2";
import _pluginCoreJS3 from "babel-plugin-polyfill-corejs3";
import _pluginRegenerator from "babel-plugin-polyfill-regenerator";
const pluginCoreJS2 = _pluginCoreJS2.default;
const pluginCoreJS3 = _pluginCoreJS3.default;
const pluginRegenerator = _pluginRegenerator.default;

import getTargets, {
prettifyTargets,
Expand Down

0 comments on commit 8d8fd33

Please sign in to comment.