Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-pure-annotations

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-react-pure-annotations - npm Package Compare versions

Comparing version 7.22.5 to 7.23.3

3

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc