@babel/plugin-external-helpers
Advanced tools
Comparing version 7.0.0-rc.3 to 7.0.0-rc.4
@@ -31,4 +31,11 @@ "use strict"; | ||
const { | ||
helperVersion = "7.0.0-beta.0" | ||
helperVersion = "7.0.0-beta.0", | ||
whitelist = false | ||
} = options; | ||
if (whitelist !== false && (!Array.isArray(whitelist) || whitelist.some(w => typeof w !== "string"))) { | ||
throw new Error(".whitelist must be undefined, false, or an array of strings"); | ||
} | ||
const helperWhitelist = whitelist ? new Set(whitelist) : null; | ||
return { | ||
@@ -41,2 +48,3 @@ pre(file) { | ||
if (helperWhitelist && !helperWhitelist.has(name)) return; | ||
return _core().types.memberExpression(_core().types.identifier("babelHelpers"), _core().types.identifier(name)); | ||
@@ -43,0 +51,0 @@ }); |
{ | ||
"name": "@babel/plugin-external-helpers", | ||
"version": "7.0.0-rc.3", | ||
"version": "7.0.0-rc.4", | ||
"description": "This plugin contains helper functions that’ll be placed at the top of the generated code", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-external-helpers", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.0.0-rc.3" | ||
"@babel/helper-plugin-utils": "^7.0.0-rc.4" | ||
}, | ||
@@ -19,5 +19,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-rc.3", | ||
"@babel/helper-plugin-test-runner": "7.0.0-rc.3" | ||
"@babel/core": "^7.0.0-rc.4", | ||
"@babel/helper-plugin-test-runner": "^7.0.0-rc.4" | ||
} | ||
} |
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
3405
41
+ Added@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-rc.3(transitive)