babel-plugin-jsx-dom-expressions 0.34.10 → 0.34.11
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 +8 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -2681,6 +2681,14 @@ function transformComponentChildren(children, config) {
|
|
|
2681
2681
|
componentChild: true
|
|
2682
2682
|
});
|
|
2683
2683
|
dynamic = dynamic || child.dynamic;
|
|
2684
|
+
if (
|
|
2685
|
+
config.generate === "ssr" &&
|
|
2686
|
+
filteredChildren.length > 1 &&
|
|
2687
|
+
child.dynamic &&
|
|
2688
|
+
t__namespace.isFunction(child.exprs[0])
|
|
2689
|
+
) {
|
|
2690
|
+
child.exprs[0] = child.exprs[0].body;
|
|
2691
|
+
}
|
|
2684
2692
|
memo.push(getCreateTemplate(config, path, child)(path, child, filteredChildren.length > 1));
|
|
2685
2693
|
}
|
|
2686
2694
|
return memo;
|
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.34.
|
|
4
|
+
"version": "0.34.11",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@babel/core": "^7.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "ed99d8856de6b9f993d3ec94afa24f288b09a37b"
|
|
31
31
|
}
|