This commit is contained in:
Nicolò Ribaudo
2021-02-22 23:35:18 +01:00
parent 771841f764
commit c827193d9c
60 changed files with 282 additions and 290 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-runtime",
"version": "7.12.17",
"version": "7.13.0",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",
"repository": {
"type": "git",
@@ -21,7 +21,7 @@
},
"dependencies": {
"@babel/helper-module-imports": "workspace:^7.12.13",
"@babel/helper-plugin-utils": "workspace:^7.12.13",
"@babel/helper-plugin-utils": "workspace:^7.13.0",
"babel-plugin-polyfill-corejs2": "^0.1.2",
"babel-plugin-polyfill-corejs3": "^0.1.2",
"babel-plugin-polyfill-regenerator": "^0.1.1",

View File

@@ -86,7 +86,7 @@ export default declare((api, options, dirname) => {
// instead of require("helper") so that it has the same interface as the
// ESM helper, and bundlers can better exchange one format for the other.
// TODO(Babel 8): Remove this check, it's always true
const DUAL_MODE_RUNTIME = "7.12.12";
const DUAL_MODE_RUNTIME = "7.13.0";
const supportsCJSDefault = hasMinVersion(DUAL_MODE_RUNTIME, runtimeVersion);
if (supportsCJSDefault && useESModules && !absoluteRuntime) {
console.warn(

View File

@@ -1 +1 @@
[@babel/plugin-transform-runtime] The 'useESModules' option is not necessary when using a @babel/runtime version >= 7.12.12 and not using the 'absoluteRuntime' option, because it automatically detects the necessary module format.
[@babel/plugin-transform-runtime] The 'useESModules' option is not necessary when using a @babel/runtime version >= 7.13.0 and not using the 'absoluteRuntime' option, because it automatically detects the necessary module format.