Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/preset-react

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/preset-react - npm Package Compare versions

Comparing version 7.13.13 to 7.22.5

lib/normalize-options.js

10

lib/index.js

@@ -34,3 +34,2 @@ 'use strict';

} = options;
if (runtime === "classic") {

@@ -40,3 +39,2 @@ pragma = pragma || "React.createElement";

}
const development = !!options.development;

@@ -57,3 +55,3 @@ return {

var index = helperPluginUtils.declare((api, opts) => {
var index = helperPluginUtils.declarePreset((api, opts) => {
api.assertVersion(7);

@@ -70,3 +68,3 @@ const {

return {
plugins: [[development ? transformReactJSXDevelopment__default['default'] : transformReactJSX__default['default'], {
plugins: [[development ? transformReactJSXDevelopment__default["default"] : transformReactJSX__default["default"], {
importSource,

@@ -80,7 +78,7 @@ pragma,

useSpread: opts.useSpread
}], transformReactDisplayName__default['default'], pure !== false && transformReactPure__default['default']].filter(Boolean)
}], transformReactDisplayName__default["default"], pure !== false && transformReactPure__default["default"]].filter(Boolean)
};
});
exports.default = index;
exports["default"] = index;
//# sourceMappingURL=index.js.map

28

package.json
{
"name": "@babel/preset-react",
"version": "7.13.13",
"version": "7.22.5",
"description": "Babel preset for all React plugins.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-preset-react",

@@ -17,10 +17,10 @@ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20react%22+is%3Aopen",

},
"main": "lib/index.js",
"main": "./lib/index.js",
"dependencies": {
"@babel/helper-plugin-utils": "^7.13.0",
"@babel/helper-validator-option": "^7.12.17",
"@babel/plugin-transform-react-display-name": "^7.12.13",
"@babel/plugin-transform-react-jsx": "^7.13.12",
"@babel/plugin-transform-react-jsx-development": "^7.12.17",
"@babel/plugin-transform-react-pure-annotations": "^7.12.1"
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-validator-option": "^7.22.5",
"@babel/plugin-transform-react-display-name": "^7.22.5",
"@babel/plugin-transform-react-jsx": "^7.22.5",
"@babel/plugin-transform-react-jsx-development": "^7.22.5",
"@babel/plugin-transform-react-pure-annotations": "^7.22.5"
},

@@ -31,5 +31,9 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.13.13",
"@babel/helper-plugin-test-runner": "7.13.10"
}
"@babel/core": "^7.22.5",
"@babel/helper-plugin-test-runner": "^7.22.5"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}

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