[internal] Use the Node.js behavior for default imports (#12795)

This commit is contained in:
Nicolò Ribaudo
2021-03-04 13:55:15 +01:00
committed by GitHub
parent ac758f7d70
commit d9ebfab07f
6 changed files with 74 additions and 16 deletions

View File

@@ -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";