@babel/plugin-transform-runtime
Advanced tools
Comparing version 7.21.0 to 7.21.4
@@ -146,7 +146,9 @@ "use strict"; | ||
file.set("helperGenerator", name => { | ||
if (!(file.availableHelper != null && file.availableHelper(name, runtimeVersion))) { | ||
if (name === "regeneratorRuntime") { | ||
return _core.types.arrowFunctionExpression([], _core.types.identifier("regeneratorRuntime")); | ||
{ | ||
if (!(file.availableHelper != null && file.availableHelper(name, runtimeVersion))) { | ||
if (name === "regeneratorRuntime") { | ||
return _core.types.arrowFunctionExpression([], _core.types.identifier("regeneratorRuntime")); | ||
} | ||
return; | ||
} | ||
return; | ||
} | ||
@@ -153,0 +155,0 @@ const isInteropHelper = HEADER_HELPERS.indexOf(name) !== -1; |
{ | ||
"name": "@babel/plugin-transform-runtime", | ||
"version": "7.21.0", | ||
"version": "7.21.4", | ||
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-module-imports": "^7.18.6", | ||
"@babel/helper-module-imports": "^7.21.4", | ||
"@babel/helper-plugin-utils": "^7.20.2", | ||
@@ -35,10 +35,10 @@ "babel-plugin-polyfill-corejs2": "^0.3.3", | ||
"devDependencies": { | ||
"@babel/core": "^7.21.0", | ||
"@babel/core": "^7.21.4", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/helpers": "^7.21.0", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-env": "^7.21.4", | ||
"@babel/runtime": "^7.21.0", | ||
"@babel/runtime-corejs3": "^7.21.0", | ||
"@babel/template": "^7.20.7", | ||
"@babel/types": "^7.21.0", | ||
"@babel/types": "^7.21.4", | ||
"make-dir": "^2.1.0" | ||
@@ -45,0 +45,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39112
294