@babel/plugin-transform-react-constant-elements
Advanced tools
Comparing version 7.13.10 to 7.13.13
@@ -75,6 +75,11 @@ "use strict"; | ||
if (path.isJSXIdentifier() || path.isIdentifier() || path.isJSXMemberExpression() || path.isJSXNamespacedName()) { | ||
if (path.isJSXIdentifier() || path.isJSXMemberExpression() || path.isJSXNamespacedName()) { | ||
return; | ||
} | ||
if (path.isIdentifier()) { | ||
const binding = path.scope.getBinding(path.node.name); | ||
if (binding && binding.constant) return; | ||
} | ||
if (!path.isImmutable()) { | ||
@@ -81,0 +86,0 @@ if (path.isPure()) { |
{ | ||
"name": "@babel/plugin-transform-react-constant-elements", | ||
"version": "7.13.10", | ||
"version": "7.13.13", | ||
"description": "Treat React JSX elements as value types and hoist them to the highest scope", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "7.13.10", | ||
"@babel/core": "7.13.13", | ||
"@babel/helper-plugin-test-runner": "7.13.10" | ||
} | ||
} |
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
7195
151