@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.
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +21 -3
- package/dist/build.js.map +4 -4
- package/dist/index.js +21 -3
- package/dist/index.js.map +4 -4
- package/dist/src/vue/pageHandler.d.ts +5 -0
- package/dist/vue/index.js +25 -3
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +25 -3
- package/dist/vue/server.js.map +3 -3
- package/package.json +9 -1
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
|
-
|
|
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") {',
|
|
@@ -13946,6 +13960,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13946
13960
|
"@angular/*",
|
|
13947
13961
|
"typescript"
|
|
13948
13962
|
];
|
|
13963
|
+
const svelteResolveConditions = svelteDir ? ["svelte", "main"] : undefined;
|
|
13949
13964
|
const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
|
|
13950
13965
|
const reactBuildConfig = reactClientEntryPoints.length > 0 ? mergeBunBuildConfig({
|
|
13951
13966
|
entrypoints: reactClientEntryPoints,
|
|
@@ -13991,6 +14006,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13991
14006
|
vueCssResult
|
|
13992
14007
|
] = await Promise.all([
|
|
13993
14008
|
serverEntryPoints.length > 0 ? tracePhase("bun/server", () => bunBuild6(mergeBunBuildConfig({
|
|
14009
|
+
conditions: svelteResolveConditions,
|
|
13994
14010
|
entrypoints: serverEntryPoints,
|
|
13995
14011
|
external: serverBuildExternals,
|
|
13996
14012
|
format: "esm",
|
|
@@ -14004,6 +14020,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14004
14020
|
}, resolveBunBuildOverride(bunBuildConfig, "server")))) : undefined,
|
|
14005
14021
|
reactBuildConfig ? tracePhase("bun/react-client", () => bunBuild6(reactBuildConfig)) : undefined,
|
|
14006
14022
|
nonReactClientEntryPoints.length > 0 ? tracePhase("bun/non-react-client", () => bunBuild6(mergeBunBuildConfig({
|
|
14023
|
+
conditions: svelteResolveConditions,
|
|
14007
14024
|
define: vueDirectory ? vueFeatureFlags : undefined,
|
|
14008
14025
|
entrypoints: nonReactClientEntryPoints,
|
|
14009
14026
|
external: Object.keys(nonReactExternalPaths),
|
|
@@ -14023,6 +14040,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14023
14040
|
tsconfig: "./tsconfig.json"
|
|
14024
14041
|
}, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
|
|
14025
14042
|
islandClientEntryPoints.length > 0 ? tracePhase("bun/island-client", () => bunBuild6(mergeBunBuildConfig({
|
|
14043
|
+
conditions: svelteResolveConditions,
|
|
14026
14044
|
define: vueDirectory ? vueFeatureFlags : undefined,
|
|
14027
14045
|
entrypoints: islandClientEntryPoints,
|
|
14028
14046
|
external: Object.keys(nonReactExternalPaths),
|
|
@@ -26789,5 +26807,5 @@ export {
|
|
|
26789
26807
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26790
26808
|
};
|
|
26791
26809
|
|
|
26792
|
-
//# debugId=
|
|
26810
|
+
//# debugId=CD6029459CC73A6C64756E2164756E21
|
|
26793
26811
|
//# sourceMappingURL=index.js.map
|