@babel/plugin-transform-react-jsx
Advanced tools
Comparing version 7.21.5 to 7.22.0
@@ -417,3 +417,6 @@ "use strict"; | ||
for (const attr of attribs) { | ||
const name = _core.types.isJSXAttribute(attr) && _core.types.isJSXIdentifier(attr.name) && attr.name.name; | ||
const { | ||
node | ||
} = attr; | ||
const name = _core.types.isJSXAttribute(node) && _core.types.isJSXIdentifier(node.name) && node.name.name; | ||
if (runtime === "automatic" && (name === "__source" || name === "__self")) { | ||
@@ -420,0 +423,0 @@ if (found[name]) throw sourceSelfError(path, name); |
{ | ||
"name": "@babel/plugin-transform-react-jsx", | ||
"version": "7.21.5", | ||
"version": "7.22.0", | ||
"description": "Turn JSX into React function calls", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
"@babel/plugin-syntax-jsx": "^7.21.4", | ||
"@babel/types": "^7.21.5" | ||
"@babel/types": "^7.22.0" | ||
}, | ||
@@ -31,5 +31,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.21.5", | ||
"@babel/core": "^7.22.0", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.21.5" | ||
"@babel/traverse": "^7.22.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
79979
10
528
Updated@babel/types@^7.22.0