@absolutejs/absolute 0.19.0-beta.816 → 0.19.0-beta.817

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
@@ -10642,7 +10642,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
10642
10642
  ] : [];
10643
10643
  await write2(indexOutputFile, [
10644
10644
  ...vueHmrImports,
10645
- `import Comp from "${relative8(dirname12(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
10645
+ `import Comp, * as PageModule from "${relative8(dirname12(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
10646
10646
  'import { createSSRApp, createApp } from "vue";',
10647
10647
  "",
10648
10648
  "// HMR State Preservation: Check for preserved state from HMR",
@@ -10677,7 +10677,21 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
10677
10677
  'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
10678
10678
  'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty);',
10679
10679
  "const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
10680
- 'app.mount("#root");',
10680
+ "",
10681
+ "// Optional setupApp hook \u2014 page modules can export `setupApp(app, { url, isServer })`",
10682
+ "// to attach plugins like vue-router that require app.use() before mount.",
10683
+ "// On the client we pass the current location.pathname + search as `url` and",
10684
+ "// `isServer: false` so the same hook works in both environments.",
10685
+ "async function bootstrapApp() {",
10686
+ ' if (typeof PageModule.setupApp === "function") {',
10687
+ ' const clientUrl = typeof window !== "undefined"',
10688
+ " ? window.location.pathname + window.location.search",
10689
+ ' : "/";',
10690
+ " await PageModule.setupApp(app, { url: clientUrl, isServer: false });",
10691
+ " }",
10692
+ ' app.mount("#root");',
10693
+ "}",
10694
+ "bootstrapApp();",
10681
10695
  "",
10682
10696
  "// Store app instance for HMR - used for manual component updates",
10683
10697
  'if (typeof window !== "undefined") {',
@@ -26789,5 +26803,5 @@ export {
26789
26803
  ANGULAR_INIT_TIMEOUT_MS
26790
26804
  };
26791
26805
 
26792
- //# debugId=3460A4F5B0E0832C64756E2164756E21
26806
+ //# debugId=A3959AC7E8601C6464756E2164756E21
26793
26807
  //# sourceMappingURL=index.js.map