@absolutejs/absolute 0.19.0-beta.400 → 0.19.0-beta.401

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/build.js CHANGED
@@ -176373,23 +176373,7 @@ var init_pageHandler3 = __esm(() => {
176373
176373
  // src/vue/pageHandler.ts
176374
176374
  import { readdir as readdir4 } from "fs/promises";
176375
176375
  import { basename as basename11, dirname as dirname11 } from "path";
176376
- var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDING__=true;", hydrateSlotReleaseScript = `(function() {
176377
- var releaseSlots = function() {
176378
- if (window.__ABS_SLOT_HYDRATION_PENDING__ !== false) {
176379
- window.__ABS_SLOT_HYDRATION_PENDING__ = false;
176380
- }
176381
- if (typeof window.__ABS_SLOT_FLUSH__ === "function") {
176382
- window.__ABS_SLOT_FLUSH__();
176383
- }
176384
- };
176385
- if (typeof requestAnimationFrame === "function") {
176386
- requestAnimationFrame(function() {
176387
- requestAnimationFrame(releaseSlots);
176388
- });
176389
- } else if (typeof setTimeout === "function") {
176390
- setTimeout(releaseSlots, 0);
176391
- }
176392
- })();`, injectSlotPreamble = (headTag) => headTag.includes("</head>") ? headTag.replace("</head>", `<script>${hydrateSlotPreamble}</script></head>`) : `${headTag}<script>${hydrateSlotPreamble}</script>`, injectSlotReleaseScript = (content) => content + `<script>${hydrateSlotReleaseScript}</script>`, isRecord8 = (value) => typeof value === "object" && value !== null, isGenericVueComponent = (value) => typeof value === "function" || isRecord8(value), readHasIslands2 = (value) => {
176376
+ var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDING__=true;", injectSlotPreamble = (headTag) => headTag.includes("</head>") ? headTag.replace("</head>", `<script>${hydrateSlotPreamble}</script></head>`) : `${headTag}<script>${hydrateSlotPreamble}</script>`, isRecord8 = (value) => typeof value === "object" && value !== null, isGenericVueComponent = (value) => typeof value === "function" || isRecord8(value), readHasIslands2 = (value) => {
176393
176377
  if (!isRecord8(value))
176394
176378
  return false;
176395
176379
  const hasIslands = value["__ABSOLUTE_PAGE_HAS_ISLANDS__"];
@@ -176413,7 +176397,7 @@ var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDIN
176413
176397
  const propsScript = `window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})};`;
176414
176398
  const hydratedHead = injectSlotPreamble(headTag);
176415
176399
  const dirtyFlag = "window.__SSR_DIRTY__=true;";
176416
- const html = `<!DOCTYPE html><html>${hydratedHead}<body><div id="root"></div>` + `<script>${propsScript}${dirtyFlag}</script>` + injectSlotReleaseScript(`<script type="module" src="${indexPath}"></script>`) + `</body></html>`;
176400
+ const html = `<!DOCTYPE html><html>${hydratedHead}<body><div id="root"></div>` + `<script>${propsScript}${dirtyFlag}</script>` + `<script type="module" src="${indexPath}"></script>` + `</body></html>`;
176417
176401
  return new Response(html, {
176418
176402
  headers: { "Content-Type": "text/html" }
176419
176403
  });
@@ -176450,7 +176434,7 @@ var ssrDirty4 = false, hydrateSlotPreamble = "window.__ABS_SLOT_HYDRATION_PENDIN
176450
176434
  });
176451
176435
  const bodyStream = renderToWebStream(app);
176452
176436
  const head = `<!DOCTYPE html><html>${injectSlotPreamble(headTag)}<body><div id="root">`;
176453
- const tail = `</div><script>window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})}</script>${injectSlotReleaseScript(`<script type="module" src="${indexPath}"></script>`)}</body></html>`;
176437
+ const tail = `</div><script>window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})}</script><script type="module" src="${indexPath}"></script></body></html>`;
176454
176438
  const stream = new ReadableStream({
176455
176439
  start(controller) {
176456
176440
  controller.enqueue(head);
@@ -179255,5 +179239,5 @@ export {
179255
179239
  build
179256
179240
  };
179257
179241
 
179258
- //# debugId=DD0136274D3A6D9D64756E2164756E21
179242
+ //# debugId=E1A6E253ABECD5BA64756E2164756E21
179259
179243
  //# sourceMappingURL=build.js.map