@builder.io/mitosis 0.5.32 → 0.5.33
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.
|
@@ -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;
|