ilha 0.7.0 → 0.7.1
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/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -465,6 +465,7 @@ function ilhaJsx(type, props, maybeKey, ...restChildren) {
|
|
|
465
465
|
if (isRawHtml(out)) return out;
|
|
466
466
|
if (typeof out === "string" && isIsland(type)) return ilhaRaw(emitIslandSlot(type, componentProps, slotKey));
|
|
467
467
|
if (typeof out === "string") return ilhaHtml`${out}`;
|
|
468
|
+
if (typeof out === "object" && out !== null && Object.getPrototypeOf(out) === Object.prototype && out[Symbol.for("ilha.renderPart")] === true && typeof out.toString === "function") return ilhaRaw(out.toString());
|
|
468
469
|
return ilhaHtml`${out}`;
|
|
469
470
|
}
|
|
470
471
|
return renderJsxElement(type, props, normalizedChildren);
|