@babel/plugin-transform-react-constant-elements
Advanced tools
Comparing version 7.8.3 to 7.9.0
@@ -12,6 +12,2 @@ "use strict"; | ||
var _helperAnnotateAsPure = _interopRequireDefault(require("@babel/helper-annotate-as-pure")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _default = (0, _helperPluginUtils.declare)((api, options) => { | ||
@@ -98,10 +94,3 @@ api.assertVersion(7); | ||
path.traverse(immutabilityVisitor, state); | ||
if (state.isImmutable) { | ||
const hoisted = path.hoist(); | ||
if (hoisted) { | ||
(0, _helperAnnotateAsPure.default)(hoisted); | ||
} | ||
} | ||
if (state.isImmutable) path.hoist(); | ||
} | ||
@@ -108,0 +97,0 @@ |
{ | ||
"name": "@babel/plugin-transform-react-constant-elements", | ||
"version": "7.8.3", | ||
"version": "7.9.0", | ||
"description": "Treat React JSX elements as value types and hoist them to the highest scope", | ||
@@ -15,3 +15,2 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-constant-elements", | ||
"dependencies": { | ||
"@babel/helper-annotate-as-pure": "^7.8.3", | ||
"@babel/helper-plugin-utils": "^7.8.3" | ||
@@ -23,6 +22,6 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.8.3", | ||
"@babel/core": "^7.9.0", | ||
"@babel/helper-plugin-test-runner": "^7.8.3" | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "8d5e422be27251cfaadf8dd2536b31b4a5024b02" | ||
} |
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
2
4774
79
- Removed@babel/helper-annotate-as-pure@7.24.7(transitive)