solidstep 0.3.2 → 0.3.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solidstep",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Next Step SolidJS Framework for building web applications.",
5
5
  "type": "module",
6
6
  "author": "HamzaKV <hamzakv333@gmail.com>",
package/server.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAkfA,QAAA,MAAM,OAAO,2FAuXX,CAAC;AAEH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAkfA,QAAA,MAAM,OAAO,2FA0XX,CAAC;AAEH,eAAe,OAAO,CAAC"}
package/server.js CHANGED
@@ -635,6 +635,7 @@ const handler = eventHandler(async (event) => {
635
635
  return '';
636
636
  })
637
637
  .join('\n');
638
+ push(`<template id="__page_html__">${html}</template>`);
638
639
  push(`
639
640
  <script ${cspNonce ? `nonce="${cspNonce}"` : ''}>
640
641
  const head = document.querySelector('head');
@@ -645,7 +646,9 @@ const handler = eventHandler(async (event) => {
645
646
  });
646
647
  document.querySelector('script[data-hydration="loading"]')?.remove();
647
648
  const loading = document.querySelector('body');
648
- loading.innerHTML = \`${html}\`;
649
+ const template = document.getElementById('__page_html__');
650
+ loading.innerHTML = template.innerHTML;
651
+ template.remove();
649
652
  </script>
650
653
  `);
651
654
  push(manifestHtml);