babel-plugin-jsx-dom-expressions 0.37.18 → 0.37.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -363,7 +363,7 @@ function isDynamic(path, { checkMember, checkTags, checkCallExpressions = true,
|
|
|
363
363
|
return true;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
if (checkTags && (t__namespace.isJSXElement(expr) || t__namespace.isJSXFragment(expr))) {
|
|
366
|
+
if (checkTags && (t__namespace.isJSXElement(expr) || (t__namespace.isJSXFragment(expr) && expr.children.length))) {
|
|
367
367
|
return true;
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -397,7 +397,7 @@ function isDynamic(path, { checkMember, checkTags, checkCallExpressions = true,
|
|
|
397
397
|
checkTags ? (dynamic = true) && p.stop() : p.skip();
|
|
398
398
|
},
|
|
399
399
|
JSXFragment(p) {
|
|
400
|
-
checkTags ? (dynamic = true) && p.stop() : p.skip();
|
|
400
|
+
checkTags && p.node.children.length ? (dynamic = true) && p.stop() : p.skip();
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
return dynamic;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-jsx-dom-expressions",
|
|
3
3
|
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.19",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "91f44cd19f0ecee4903409589b16dde1c0f5ba44"
|
|
35
35
|
}
|