@babel/helper-builder-react-jsx-experimental
Advanced tools
Comparing version 7.9.0 to 7.9.5
@@ -230,3 +230,3 @@ "use strict"; | ||
const openingPath = path.get("openingElement"); | ||
const validChildren = openingPath.parent.children.filter(child => !t.isJSXEmptyExpression(child) && !(t.isJSXText(child) && child.value.trim() === "")); | ||
const validChildren = t.react.buildChildren(openingPath.parent); | ||
let importName; | ||
@@ -233,0 +233,0 @@ |
{ | ||
"name": "@babel/helper-builder-react-jsx-experimental", | ||
"version": "7.9.0", | ||
"version": "7.9.5", | ||
"description": "Helper function to build react jsx", | ||
@@ -14,5 +14,5 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-react-jsx-experimental", | ||
"@babel/helper-module-imports": "^7.8.3", | ||
"@babel/types": "^7.9.0" | ||
"@babel/types": "^7.9.5" | ||
}, | ||
"gitHead": "8d5e422be27251cfaadf8dd2536b31b4a5024b02" | ||
"gitHead": "5b97e77e030cf3853a147fdff81844ea4026219d" | ||
} |
@@ -306,8 +306,4 @@ import * as t from "@babel/types"; | ||
const openingPath = path.get("openingElement"); | ||
const validChildren = openingPath.parent.children.filter( | ||
child => | ||
!t.isJSXEmptyExpression(child) && | ||
!(t.isJSXText(child) && child.value.trim() === ""), | ||
); | ||
const validChildren = t.react.buildChildren(openingPath.parent); | ||
let importName; | ||
@@ -314,0 +310,0 @@ if (path.type === "JSXElement" && shouldUseCreateElement(path)) { |
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
47233
1241
Updated@babel/types@^7.9.5