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

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-8o4UFz/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7NGmw5/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-8o4UFz/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7NGmw5/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-8o4UFz/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-7NGmw5/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -10450,7 +10450,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
10450
10450
  ] : [];
10451
10451
  await write2(indexOutputFile, [
10452
10452
  ...vueHmrImports,
10453
- `import Comp from "${relative8(dirname10(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
10453
+ `import Comp, * as PageModule from "${relative8(dirname10(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
10454
10454
  'import { createSSRApp, createApp } from "vue";',
10455
10455
  "",
10456
10456
  "// HMR State Preservation: Check for preserved state from HMR",
@@ -10485,7 +10485,21 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
10485
10485
  'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
10486
10486
  'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty);',
10487
10487
  "const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
10488
- 'app.mount("#root");',
10488
+ "",
10489
+ "// Optional setupApp hook \u2014 page modules can export `setupApp(app, { url, isServer })`",
10490
+ "// to attach plugins like vue-router that require app.use() before mount.",
10491
+ "// On the client we pass the current location.pathname + search as `url` and",
10492
+ "// `isServer: false` so the same hook works in both environments.",
10493
+ "async function bootstrapApp() {",
10494
+ ' if (typeof PageModule.setupApp === "function") {',
10495
+ ' const clientUrl = typeof window !== "undefined"',
10496
+ " ? window.location.pathname + window.location.search",
10497
+ ' : "/";',
10498
+ " await PageModule.setupApp(app, { url: clientUrl, isServer: false });",
10499
+ " }",
10500
+ ' app.mount("#root");',
10501
+ "}",
10502
+ "bootstrapApp();",
10489
10503
  "",
10490
10504
  "// Store app instance for HMR - used for manual component updates",
10491
10505
  'if (typeof window !== "undefined") {',
@@ -13754,6 +13768,7 @@ ${content.slice(firstUseIdx)}`;
13754
13768
  "@angular/*",
13755
13769
  "typescript"
13756
13770
  ];
13771
+ const svelteResolveConditions = svelteDir ? ["svelte", "main"] : undefined;
13757
13772
  const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
13758
13773
  const reactBuildConfig = reactClientEntryPoints.length > 0 ? mergeBunBuildConfig({
13759
13774
  entrypoints: reactClientEntryPoints,
@@ -13799,6 +13814,7 @@ ${content.slice(firstUseIdx)}`;
13799
13814
  vueCssResult
13800
13815
  ] = await Promise.all([
13801
13816
  serverEntryPoints.length > 0 ? tracePhase("bun/server", () => bunBuild6(mergeBunBuildConfig({
13817
+ conditions: svelteResolveConditions,
13802
13818
  entrypoints: serverEntryPoints,
13803
13819
  external: serverBuildExternals,
13804
13820
  format: "esm",
@@ -13812,6 +13828,7 @@ ${content.slice(firstUseIdx)}`;
13812
13828
  }, resolveBunBuildOverride(bunBuildConfig, "server")))) : undefined,
13813
13829
  reactBuildConfig ? tracePhase("bun/react-client", () => bunBuild6(reactBuildConfig)) : undefined,
13814
13830
  nonReactClientEntryPoints.length > 0 ? tracePhase("bun/non-react-client", () => bunBuild6(mergeBunBuildConfig({
13831
+ conditions: svelteResolveConditions,
13815
13832
  define: vueDirectory ? vueFeatureFlags : undefined,
13816
13833
  entrypoints: nonReactClientEntryPoints,
13817
13834
  external: Object.keys(nonReactExternalPaths),
@@ -13831,6 +13848,7 @@ ${content.slice(firstUseIdx)}`;
13831
13848
  tsconfig: "./tsconfig.json"
13832
13849
  }, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
13833
13850
  islandClientEntryPoints.length > 0 ? tracePhase("bun/island-client", () => bunBuild6(mergeBunBuildConfig({
13851
+ conditions: svelteResolveConditions,
13834
13852
  define: vueDirectory ? vueFeatureFlags : undefined,
13835
13853
  entrypoints: islandClientEntryPoints,
13836
13854
  external: Object.keys(nonReactExternalPaths),
@@ -18194,5 +18212,5 @@ export {
18194
18212
  build
18195
18213
  };
18196
18214
 
18197
- //# debugId=0D948A8955A280DA64756E2164756E21
18215
+ //# debugId=39A8E5637D11889964756E2164756E21
18198
18216
  //# sourceMappingURL=build.js.map