@builder.io/mitosis 0.5.32 → 0.5.34
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.
|
@@ -371,7 +371,7 @@ const componentMappers = {
|
|
|
371
371
|
* If width if undefined, do not create a binding otherwise its JSX will
|
|
372
372
|
* be <Column width={} /> which is not valid due to the empty expression.
|
|
373
373
|
*/
|
|
374
|
-
...(col.width
|
|
374
|
+
...(col.width != null && {
|
|
375
375
|
bindings: {
|
|
376
376
|
width: { code: col.width.toString() },
|
|
377
377
|
},
|
|
@@ -285,8 +285,9 @@ const jsxElementToJson = (node) => {
|
|
|
285
285
|
bindingType: 'function',
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
|
-
else if (types.isJSXElement(expression)) {
|
|
288
|
+
else if (types.isJSXElement(expression) || types.isJSXFragment(expression)) {
|
|
289
289
|
// <Foo myProp={<MoreMitosisNode><div /></MoreMitosisNode>} />
|
|
290
|
+
// <Foo myProp={<><Node /><Node /></>} />
|
|
290
291
|
const slotNode = (0, exports.jsxElementToJson)(expression);
|
|
291
292
|
if (!slotNode)
|
|
292
293
|
return memo;
|