@absolutejs/absolute 0.19.0-beta.1056 → 0.19.0-beta.1058

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 CHANGED
@@ -23886,12 +23886,6 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
23886
23886
  " }",
23887
23887
  "});",
23888
23888
  "",
23889
- "// During HMR or after SSR dirty, use createApp (fresh mount) to avoid hydration mismatch with stale DOM",
23890
- 'const isHMR = typeof window !== "undefined" && sessionStorage.getItem("__HMR_ACTIVE__");',
23891
- 'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
23892
- 'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty);',
23893
- "const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
23894
- "",
23895
23889
  "// `setupApp` hook. Reflect.get hides the lookup from Bun's",
23896
23890
  "// static analyzer so non-SPA pages without it don't trigger",
23897
23891
  '// "always undefined" warnings. Pages that export `routes`',
@@ -23901,6 +23895,17 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
23901
23895
  "// provide/inject symbols match between the router and the",
23902
23896
  "// page's `useRoute()` calls.",
23903
23897
  'const setupAppHook = Reflect.get(PageModule, "setupApp");',
23898
+ 'const hasSpaRoutes = Array.isArray(Reflect.get(PageModule, "routes"));',
23899
+ "",
23900
+ "// During HMR, after SSR dirty, or for routed SPA shells, use",
23901
+ "// createApp (fresh mount) to avoid hydration attaching event",
23902
+ "// listeners to stale SSR nodes. The router still handles",
23903
+ "// client-side navigation after mount.",
23904
+ 'const isHMR = typeof window !== "undefined" && sessionStorage.getItem("__HMR_ACTIVE__");',
23905
+ 'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
23906
+ 'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty || hasSpaRoutes);',
23907
+ "const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
23908
+ "",
23904
23909
  "async function bootstrapApp() {",
23905
23910
  ' if (typeof setupAppHook === "function") {',
23906
23911
  ' const clientUrl = typeof window !== "undefined"',
@@ -31207,7 +31212,8 @@ ${content.slice(firstUseIdx)}`;
31207
31212
  const childArtifact = serverJsByPascalName.get(childName);
31208
31213
  if (!childArtifact)
31209
31214
  return [];
31210
- const cssPath = childArtifact.path.replace(/\.js$/, ".css");
31215
+ const absoluteCssPath = childArtifact.path.replace(/\.js$/, ".css");
31216
+ const cssPath = relative14(dirname20(parentArtifact.path), absoluteCssPath);
31211
31217
  return [{ cssPath, path }];
31212
31218
  });
31213
31219
  if (entries.length === 0)
@@ -46572,5 +46578,5 @@ export {
46572
46578
  ANGULAR_INIT_TIMEOUT_MS
46573
46579
  };
46574
46580
 
46575
- //# debugId=750C6572D2856D9964756E2164756E21
46581
+ //# debugId=2067581091BE8F3964756E2164756E21
46576
46582
  //# sourceMappingURL=index.js.map