@tylix/compiler 0.4.0 → 0.4.2
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/package.json
CHANGED
|
@@ -257,11 +257,15 @@ ${childRegistrations}
|
|
|
257
257
|
if (typeof instance.__ready === "function") {
|
|
258
258
|
await instance.__ready();
|
|
259
259
|
}
|
|
260
|
-
if (typeof instance.__onMount === "function") {
|
|
261
|
-
await instance.__onMount();
|
|
262
|
-
}
|
|
263
260
|
${code}
|
|
264
261
|
${layoutMountCode}
|
|
262
|
+
if (typeof instance.__onMount === "function") {
|
|
263
|
+
try {
|
|
264
|
+
await instance.__onMount();
|
|
265
|
+
} catch (err) {
|
|
266
|
+
console.error("onMount failed:", err);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
265
269
|
})(document, instance, components);
|
|
266
270
|
});
|
|
267
271
|
`
|
|
@@ -327,4 +331,4 @@ ${styleTag}
|
|
|
327
331
|
<script>${inlineScript}</script>
|
|
328
332
|
</body>
|
|
329
333
|
</html>`
|
|
330
|
-
}
|
|
334
|
+
}
|