@babel/plugin-transform-react-pure-annotations
Advanced tools
Comparing version 7.22.5 to 7.23.3
@@ -11,3 +11,3 @@ "use strict"; | ||
const PURE_CALLS = [["react", new Set(["cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "memo", "lazy"])], ["react-dom", new Set(["createPortal"])]]; | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
var _default = exports.default = (0, _helperPluginUtils.declare)(api => { | ||
api.assertVersion(7); | ||
@@ -25,3 +25,2 @@ return { | ||
}); | ||
exports.default = _default; | ||
function isReactCall(path) { | ||
@@ -28,0 +27,0 @@ const calleePath = path.get("callee"); |
{ | ||
"name": "@babel/plugin-transform-react-pure-annotations", | ||
"version": "7.22.5", | ||
"version": "7.23.3", | ||
"description": "Mark top-level React method calls as pure for tree shaking", | ||
@@ -26,3 +26,3 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.22.5", | ||
"@babel/core": "^7.23.3", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
@@ -29,0 +29,0 @@ }, |
@@ -5,3 +5,3 @@ # @babel/plugin-transform-react-pure-annotations | ||
See our website [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations) for more information. | ||
See our website [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/babel-plugin-transform-react-pure-annotations) for more information. | ||
@@ -8,0 +8,0 @@ ## Install |
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
8410
47