@absolutejs/absolute 0.20.0-beta.4 → 0.20.0-beta.6
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/angular/index.js +341 -22
- package/dist/angular/index.js.map +8 -5
- package/dist/angular/server.js +341 -22
- package/dist/angular/server.js.map +8 -5
- package/dist/build.js +94 -22
- package/dist/build.js.map +9 -9
- package/dist/cli/index.js +986 -557
- package/dist/dev/client/cssUtils.ts +16 -2
- package/dist/dev/client/handlers/rebuild.ts +11 -1
- package/dist/dev/client/hmrTiming.ts +14 -7
- package/dist/index.js +364 -191
- package/dist/index.js.map +17 -17
- package/dist/mobile/browser.js +14 -1
- package/dist/mobile/browser.js.map +3 -3
- package/dist/mobile/index.js +588 -99
- package/dist/mobile/index.js.map +15 -13
- package/dist/mobile/remoteMacAgentEntry.js +8 -8
- package/dist/src/angular/pageHandler.d.ts +3 -0
- package/dist/src/cli/config/server.d.ts +1 -1
- package/dist/src/core/pageHandlers.d.ts +11 -2
- package/dist/src/mobile/androidEmulatorController.d.ts +6 -1
- package/dist/src/mobile/buildPipeline.d.ts +1 -0
- package/dist/src/mobile/capacitorBundle.d.ts +11 -1
- package/dist/src/mobile/client.d.ts +4 -0
- package/dist/src/mobile/index.d.ts +1 -0
- package/dist/src/mobile/nativeAuth.d.ts +17 -0
- package/dist/src/mobile/releaseArtifact.d.ts +2 -0
- package/dist/src/mobile/shellAuth.d.ts +8 -0
- package/dist/src/mobile/shellBootstrap.d.ts +11 -1
- package/dist/src/mobile/shellSync.d.ts +2 -0
- package/dist/src/mobile/staticDocument.d.ts +5 -0
- package/dist/src/mobile/transport.d.ts +9 -1
- package/dist/src/plugins/imageOptimizer.d.ts +1 -1
- package/dist/src/svelte/pageHandler.d.ts +3 -0
- package/dist/src/vue/pageHandler.d.ts +3 -0
- package/dist/svelte/index.js +312 -23
- package/dist/svelte/index.js.map +7 -4
- package/dist/svelte/server.js +307 -18
- package/dist/svelte/server.js.map +7 -4
- package/dist/vue/index.js +312 -23
- package/dist/vue/index.js.map +7 -4
- package/dist/vue/server.js +307 -18
- package/dist/vue/server.js.map +7 -4
- package/package.json +21 -9
package/dist/build.js
CHANGED
|
@@ -969,9 +969,10 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
969
969
|
`}
|
|
970
970
|
`,
|
|
971
971
|
`// Attempt hydration with error handling`,
|
|
972
|
+
`const shouldClientRender = window.__ABSOLUTE_PAGE_RENDER_MODE__ === 'client';`,
|
|
972
973
|
`// Use document (not document.body) when the page renders <html><head><body>`,
|
|
973
974
|
`// to avoid "In HTML, <html> cannot be a child of <body>" hydration error`,
|
|
974
|
-
`const container = typeof document !== 'undefined' ? document : null;`,
|
|
975
|
+
`const container = typeof document !== 'undefined' ? (shouldClientRender ? document.getElementById('root') : document) : null;`,
|
|
975
976
|
`if (!container) {`,
|
|
976
977
|
` throw new Error('React root container not found: document is null');`,
|
|
977
978
|
`}
|
|
@@ -997,7 +998,6 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
997
998
|
`if (!window.__REACT_ROOT__) {`,
|
|
998
999
|
` let root;`,
|
|
999
1000
|
` // Mobile data envelopes and dirty HMR pages have no matching SSR markup.`,
|
|
1000
|
-
` const shouldClientRender = window.__ABSOLUTE_PAGE_RENDER_MODE__ === 'client';`,
|
|
1001
1001
|
` if (window.__SSR_DIRTY__ || shouldClientRender) {`,
|
|
1002
1002
|
` root = createRoot(container);`,
|
|
1003
1003
|
` root.render(${isDev ? `createElement(ErrorBoundary, null, createElement(PageComponent, mergedProps))` : `createElement(PageComponent, mergedProps)`});`,
|
|
@@ -1077,6 +1077,15 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
1077
1077
|
` };`,
|
|
1078
1078
|
` }`,
|
|
1079
1079
|
`}`,
|
|
1080
|
+
`if (typeof window !== 'undefined') {`,
|
|
1081
|
+
` window.__ABSOLUTE_PAGE_READY__ = Promise.resolve();`,
|
|
1082
|
+
` window.__ABSOLUTE_PAGE_DISPOSE__ = function() {`,
|
|
1083
|
+
` if (window.__REACT_ROOT__ && typeof window.__REACT_ROOT__.unmount === 'function') {`,
|
|
1084
|
+
` window.__REACT_ROOT__.unmount();`,
|
|
1085
|
+
` }`,
|
|
1086
|
+
` window.__REACT_ROOT__ = null;`,
|
|
1087
|
+
` };`,
|
|
1088
|
+
`}`,
|
|
1080
1089
|
...isDev ? [
|
|
1081
1090
|
`
|
|
1082
1091
|
// Pre-warm: import the page module from the module server`,
|
|
@@ -12355,7 +12364,8 @@ var heldLocks, HELD_LOCKS_ENV = "ABSOLUTE_HELD_BUILD_DIRECTORY_LOCKS", exitHandl
|
|
|
12355
12364
|
});
|
|
12356
12365
|
process.on("uncaughtException", (err) => {
|
|
12357
12366
|
releaseAllSync();
|
|
12358
|
-
|
|
12367
|
+
console.error(err);
|
|
12368
|
+
process.exit(1);
|
|
12359
12369
|
});
|
|
12360
12370
|
}, isAlreadyExistsError = (error) => error instanceof Error && ("code" in error) && Reflect.get(error, "code") === "EEXIST", lockPathForBuildDirectory = (buildDirectory) => join23(dirname12(buildDirectory), ".absolutejs", "build.lock"), readHeldLockEnv = () => new Set((process.env[HELD_LOCKS_ENV] ?? "").split(`
|
|
12361
12371
|
`).filter((entry) => entry.length > 0)), writeHeldLockEnv = (locks) => {
|
|
@@ -13783,8 +13793,9 @@ import { hydrate, mount, unmount } from "svelte";
|
|
|
13783
13793
|
var initialProps = (typeof window !== "undefined" && window.__INITIAL_PROPS__) ? window.__INITIAL_PROPS__ : {};
|
|
13784
13794
|
var isHMR = typeof window !== "undefined" && window.__SVELTE_COMPONENT__ !== undefined;
|
|
13785
13795
|
var isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;
|
|
13796
|
+
var isClientRender = typeof window !== "undefined" && window.__ABSOLUTE_PAGE_RENDER_MODE__ === "client";
|
|
13786
13797
|
var hasIslandHtml = false;
|
|
13787
|
-
var shouldHydrate = typeof window === "undefined" ? false : ${hasAwaitSlot ? "false" : "true"};
|
|
13798
|
+
var shouldHydrate = typeof window === "undefined" || isClientRender ? false : ${hasAwaitSlot ? "false" : "true"};
|
|
13788
13799
|
var component;
|
|
13789
13800
|
var target = document.getElementById(${JSON.stringify(SVELTE_PAGE_ROOT_ID)}) || document.body;
|
|
13790
13801
|
|
|
@@ -13815,6 +13826,8 @@ if (isHMR) {
|
|
|
13815
13826
|
}
|
|
13816
13827
|
component = mount(Component, { target, props: mergedProps });
|
|
13817
13828
|
window.__HMR_PRESERVED_STATE__ = undefined;
|
|
13829
|
+
} else if (isClientRender) {
|
|
13830
|
+
component = mount(Component, { target, props: initialProps });
|
|
13818
13831
|
} else if (!shouldHydrate) {
|
|
13819
13832
|
component = undefined;
|
|
13820
13833
|
} else if (isSsrDirty || hasIslandHtml) {
|
|
@@ -13826,6 +13839,13 @@ if (isHMR) {
|
|
|
13826
13839
|
if (typeof window !== "undefined") {
|
|
13827
13840
|
window.__SVELTE_COMPONENT__ = component;
|
|
13828
13841
|
window.__SVELTE_UNMOUNT__ = function() { if (component) { unmount(component); } };
|
|
13842
|
+
window.__ABSOLUTE_PAGE_READY__ = Promise.resolve();
|
|
13843
|
+
window.__ABSOLUTE_PAGE_DISPOSE__ = function() {
|
|
13844
|
+
if (component) { unmount(component); }
|
|
13845
|
+
component = undefined;
|
|
13846
|
+
window.__SVELTE_COMPONENT__ = undefined;
|
|
13847
|
+
window.__SVELTE_UNMOUNT__ = undefined;
|
|
13848
|
+
};
|
|
13829
13849
|
window.__SVELTE_REMOUNT__ = function(props) {
|
|
13830
13850
|
if (typeof window.__SVELTE_UNMOUNT__ === "function") {
|
|
13831
13851
|
try { window.__SVELTE_UNMOUNT__(); } catch (err) { /* ignore */ }
|
|
@@ -14801,7 +14821,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
14801
14821
|
"// client-side navigation after mount.",
|
|
14802
14822
|
'const isHMR = typeof window !== "undefined" && sessionStorage.getItem("__HMR_ACTIVE__");',
|
|
14803
14823
|
'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
|
|
14804
|
-
'const
|
|
14824
|
+
'const isClientRender = typeof window !== "undefined" && window.__ABSOLUTE_PAGE_RENDER_MODE__ === "client";',
|
|
14825
|
+
'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty || hasSpaRoutes || isClientRender);',
|
|
14805
14826
|
"const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
|
|
14806
14827
|
"",
|
|
14807
14828
|
"async function bootstrapApp() {",
|
|
@@ -14819,11 +14840,17 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
14819
14840
|
" }",
|
|
14820
14841
|
' app.mount("#root");',
|
|
14821
14842
|
"}",
|
|
14822
|
-
"bootstrapApp();",
|
|
14843
|
+
"const absolutePageReady = bootstrapApp();",
|
|
14823
14844
|
"",
|
|
14824
14845
|
"// Store app instance for HMR - used for manual component updates",
|
|
14825
14846
|
'if (typeof window !== "undefined") {',
|
|
14826
14847
|
" window.__VUE_APP__ = app;",
|
|
14848
|
+
" window.__ABSOLUTE_PAGE_READY__ = absolutePageReady;",
|
|
14849
|
+
" window.__ABSOLUTE_PAGE_DISPOSE__ = async function() {",
|
|
14850
|
+
" await absolutePageReady;",
|
|
14851
|
+
" app.unmount();",
|
|
14852
|
+
" window.__VUE_APP__ = undefined;",
|
|
14853
|
+
" };",
|
|
14827
14854
|
"}",
|
|
14828
14855
|
"",
|
|
14829
14856
|
"// Post-mount: Apply preserved state to reactive refs in component tree",
|
|
@@ -16576,6 +16603,7 @@ var requestContext = Object.prototype.hasOwnProperty.call(window, '__ABS_ANGULAR
|
|
|
16576
16603
|
var pageHasIslands = Boolean(pageModule.__ABSOLUTE_PAGE_HAS_ISLANDS__) || Boolean(document.querySelector('[data-island="true"]'));
|
|
16577
16604
|
var pageHasRawStreamingSlots = Boolean(document.querySelector('[data-absolute-raw-slot="true"]'));
|
|
16578
16605
|
var pageHasStreamingSlots = Boolean(document.querySelector('[data-absolute-slot="true"]'));
|
|
16606
|
+
var isClientRender = window.__ABSOLUTE_PAGE_RENDER_MODE__ === 'client';
|
|
16579
16607
|
var contextProviders = [{ provide: REQUEST_CONTEXT, useValue: requestContext }];
|
|
16580
16608
|
// Page-level providers are injected directly into the page module's
|
|
16581
16609
|
// server output by \`compileAngular\`'s providers-injection step
|
|
@@ -16626,13 +16654,14 @@ if (!document.querySelector(_sel)) {
|
|
|
16626
16654
|
}
|
|
16627
16655
|
|
|
16628
16656
|
var providers = [provideZonelessChangeDetection()];
|
|
16629
|
-
if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
16657
|
+
if (!isClientRender && !window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
16630
16658
|
providers.push(provideClientHydration(withHttpTransferCacheOptions(absoluteHttpTransferCacheOptions)));
|
|
16631
16659
|
}
|
|
16632
16660
|
delete window.__HMR_SKIP_HYDRATION__;
|
|
16633
16661
|
providers.push.apply(providers, pageProviders);
|
|
16634
16662
|
providers.push.apply(providers, contextProviders);
|
|
16635
16663
|
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
16664
|
+
var absolutePageReady = Promise.resolve();
|
|
16636
16665
|
|
|
16637
16666
|
if (pageHasRawStreamingSlots) {
|
|
16638
16667
|
window.__ABS_SLOT_HYDRATION_PENDING__ = false;
|
|
@@ -16642,7 +16671,7 @@ if (pageHasRawStreamingSlots) {
|
|
|
16642
16671
|
});
|
|
16643
16672
|
}
|
|
16644
16673
|
} else {
|
|
16645
|
-
bootstrapApplication(${componentClassName}, {
|
|
16674
|
+
absolutePageReady = bootstrapApplication(${componentClassName}, {
|
|
16646
16675
|
providers: providers
|
|
16647
16676
|
}).then(function (appRef) {
|
|
16648
16677
|
window.__ANGULAR_APP__ = appRef;
|
|
@@ -16652,8 +16681,17 @@ if (pageHasRawStreamingSlots) {
|
|
|
16652
16681
|
window.__ABS_SLOT_FLUSH__();
|
|
16653
16682
|
});
|
|
16654
16683
|
}
|
|
16684
|
+
return appRef;
|
|
16655
16685
|
});
|
|
16656
16686
|
}
|
|
16687
|
+
window.__ABSOLUTE_PAGE_READY__ = absolutePageReady;
|
|
16688
|
+
window.__ABSOLUTE_PAGE_DISPOSE__ = async function() {
|
|
16689
|
+
await absolutePageReady;
|
|
16690
|
+
if (window.__ANGULAR_APP__) {
|
|
16691
|
+
window.__ANGULAR_APP__.destroy();
|
|
16692
|
+
window.__ANGULAR_APP__ = null;
|
|
16693
|
+
}
|
|
16694
|
+
};
|
|
16657
16695
|
`.trim() : `
|
|
16658
16696
|
import '@angular/compiler';
|
|
16659
16697
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
@@ -16672,6 +16710,7 @@ var requestContext = Object.prototype.hasOwnProperty.call(window, '__ABS_ANGULAR
|
|
|
16672
16710
|
var pageHasIslands = Boolean(pageModule.__ABSOLUTE_PAGE_HAS_ISLANDS__) || Boolean(document.querySelector('[data-island="true"]'));
|
|
16673
16711
|
var pageHasRawStreamingSlots = Boolean(document.querySelector('[data-absolute-raw-slot="true"]'));
|
|
16674
16712
|
var pageHasStreamingSlots = Boolean(document.querySelector('[data-absolute-slot="true"]'));
|
|
16713
|
+
var isClientRender = window.__ABSOLUTE_PAGE_RENDER_MODE__ === 'client';
|
|
16675
16714
|
var contextProviders = [{ provide: REQUEST_CONTEXT, useValue: requestContext }];
|
|
16676
16715
|
// Page-level providers are injected directly into the page module's
|
|
16677
16716
|
// server output by \`compileAngular\`'s providers-injection step
|
|
@@ -16691,11 +16730,21 @@ var absoluteHttpTransferCacheOptions = {
|
|
|
16691
16730
|
|
|
16692
16731
|
enableProdMode();
|
|
16693
16732
|
|
|
16733
|
+
// Production mobile/client-only activation starts from AbsoluteJS's empty
|
|
16734
|
+
// #root shell rather than server-rendered Angular markup. Create the page's
|
|
16735
|
+
// actual Angular host from its compiled selector so application authors do
|
|
16736
|
+
// not need framework-specific mobile configuration.
|
|
16737
|
+
var _sel = ${componentClassName}.\u0275cmp?.selectors?.[0]?.[0] || 'ng-app';
|
|
16738
|
+
if (!document.querySelector(_sel)) {
|
|
16739
|
+
(document.getElementById('root') || document.body).appendChild(document.createElement(_sel));
|
|
16740
|
+
}
|
|
16741
|
+
|
|
16694
16742
|
var providers = [provideZonelessChangeDetection()].concat(pageProviders).concat(contextProviders);
|
|
16695
|
-
if (!pageHasIslands) {
|
|
16743
|
+
if (!isClientRender && !pageHasIslands) {
|
|
16696
16744
|
providers.unshift(provideClientHydration(withHttpTransferCacheOptions(absoluteHttpTransferCacheOptions)));
|
|
16697
16745
|
}
|
|
16698
16746
|
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
16747
|
+
var absolutePageReady = Promise.resolve();
|
|
16699
16748
|
|
|
16700
16749
|
if (pageHasRawStreamingSlots) {
|
|
16701
16750
|
window.__ABS_SLOT_HYDRATION_PENDING__ = false;
|
|
@@ -16705,7 +16754,7 @@ if (pageHasRawStreamingSlots) {
|
|
|
16705
16754
|
});
|
|
16706
16755
|
}
|
|
16707
16756
|
} else {
|
|
16708
|
-
bootstrapApplication(${componentClassName}, {
|
|
16757
|
+
absolutePageReady = bootstrapApplication(${componentClassName}, {
|
|
16709
16758
|
providers: providers
|
|
16710
16759
|
}).then(function (appRef) {
|
|
16711
16760
|
window.__ANGULAR_APP__ = appRef;
|
|
@@ -16715,8 +16764,17 @@ if (pageHasRawStreamingSlots) {
|
|
|
16715
16764
|
window.__ABS_SLOT_FLUSH__();
|
|
16716
16765
|
});
|
|
16717
16766
|
}
|
|
16767
|
+
return appRef;
|
|
16718
16768
|
});
|
|
16719
16769
|
}
|
|
16770
|
+
window.__ABSOLUTE_PAGE_READY__ = absolutePageReady;
|
|
16771
|
+
window.__ABSOLUTE_PAGE_DISPOSE__ = async function() {
|
|
16772
|
+
await absolutePageReady;
|
|
16773
|
+
if (window.__ANGULAR_APP__) {
|
|
16774
|
+
window.__ANGULAR_APP__.destroy();
|
|
16775
|
+
window.__ANGULAR_APP__ = null;
|
|
16776
|
+
}
|
|
16777
|
+
};
|
|
16720
16778
|
`.trim();
|
|
16721
16779
|
const indexHash = Bun.hash(hydration).toString(BASE_36_RADIX);
|
|
16722
16780
|
const indexUnchanged = cachedWrapper?.indexHash === indexHash;
|
|
@@ -27738,7 +27796,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
27738
27796
|
});
|
|
27739
27797
|
});
|
|
27740
27798
|
return allModuleUpdates;
|
|
27741
|
-
}, handleReactHMR = (state, affectedFrameworks, filesToRebuild, manifest, duration) => {
|
|
27799
|
+
}, handleReactHMR = async (state, affectedFrameworks, filesToRebuild, manifest, duration) => {
|
|
27742
27800
|
if (!affectedFrameworks.includes("react") || !state.resolvedPaths.reactDir) {
|
|
27743
27801
|
return;
|
|
27744
27802
|
}
|
|
@@ -27750,14 +27808,21 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
27750
27808
|
const sourceFiles = reactPageFiles.length > 0 ? reactPageFiles : reactFiles;
|
|
27751
27809
|
const [primarySource] = sourceFiles;
|
|
27752
27810
|
try {
|
|
27753
|
-
const
|
|
27754
|
-
|
|
27811
|
+
const {
|
|
27812
|
+
isReactFastRefreshSupported: isReactFastRefreshSupported2,
|
|
27813
|
+
warnIfReactFastRefreshUnsupported: warnIfReactFastRefreshUnsupported2
|
|
27814
|
+
} = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
27815
|
+
warnIfReactFastRefreshUnsupported2();
|
|
27816
|
+
await handleReactModuleServerPath(state, reactFiles, Date.now() - duration, isReactFastRefreshSupported2(), () => {
|
|
27817
|
+
return;
|
|
27818
|
+
});
|
|
27819
|
+
} catch (err) {
|
|
27755
27820
|
logHmrUpdate(primarySource ?? reactFiles[0] ?? "", "react", duration);
|
|
27756
27821
|
broadcastToClients(state, {
|
|
27757
27822
|
data: {
|
|
27758
27823
|
framework: "react",
|
|
27759
|
-
hasComponentChanges,
|
|
27760
|
-
hasCSSChanges,
|
|
27824
|
+
hasComponentChanges: true,
|
|
27825
|
+
hasCSSChanges: reactFiles.some(isStylePath),
|
|
27761
27826
|
manifest,
|
|
27762
27827
|
primarySource,
|
|
27763
27828
|
serverDuration: duration,
|
|
@@ -27765,7 +27830,6 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
27765
27830
|
},
|
|
27766
27831
|
type: "react-update"
|
|
27767
27832
|
});
|
|
27768
|
-
} catch (err) {
|
|
27769
27833
|
console.error("[hmr] react live update failed:", err instanceof Error ? err.message : err);
|
|
27770
27834
|
sendTelemetryEvent("hmr:error", {
|
|
27771
27835
|
framework: "react",
|
|
@@ -27824,8 +27888,14 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
27824
27888
|
}
|
|
27825
27889
|
setCurrentPageIslandMetadata(await loadPageIslandMetadata(config));
|
|
27826
27890
|
const affectedPages = filesToRebuild.flatMap((file4) => getPagesUsingIslandSource(file4));
|
|
27891
|
+
if (affectedPages.length === 0)
|
|
27892
|
+
return true;
|
|
27893
|
+
const affectedFrameworks = [
|
|
27894
|
+
...new Set(affectedPages.map((page) => detectFramework(page, state.resolvedPaths)).filter((framework) => framework !== "ignored"))
|
|
27895
|
+
];
|
|
27827
27896
|
broadcastToClients(state, {
|
|
27828
27897
|
data: {
|
|
27898
|
+
affectedFrameworks,
|
|
27829
27899
|
affectedPages,
|
|
27830
27900
|
framework: "islands",
|
|
27831
27901
|
manifest,
|
|
@@ -28217,7 +28287,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
28217
28287
|
}
|
|
28218
28288
|
}, handleFullBuildHMR = async (state, config, affectedFrameworks, filesToRebuild, manifest, duration) => {
|
|
28219
28289
|
const allModuleUpdates = collectAllModuleUpdates(affectedFrameworks, filesToRebuild, manifest, state);
|
|
28220
|
-
handleReactHMR(state, affectedFrameworks, filesToRebuild, manifest, duration);
|
|
28290
|
+
await handleReactHMR(state, affectedFrameworks, filesToRebuild, manifest, duration);
|
|
28221
28291
|
handleHTMLScriptHMR(state, filesToRebuild, manifest, duration);
|
|
28222
28292
|
await handleHTMLPageHMR(state, config, filesToRebuild, manifest, duration);
|
|
28223
28293
|
await handleVueHMR(state, config, filesToRebuild, manifest, duration);
|
|
@@ -28444,7 +28514,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
28444
28514
|
message: "Rebuild completed successfully",
|
|
28445
28515
|
type: "rebuild-complete"
|
|
28446
28516
|
});
|
|
28447
|
-
|
|
28517
|
+
const hasDedicatedStyleUpdate = affectedFrameworks.some((framework) => framework === "styles" || framework === "assets");
|
|
28518
|
+
if (config.tailwind && filesToRebuild && filesToRebuild.some(isTailwindCandidate) && !hasDedicatedStyleUpdate) {
|
|
28448
28519
|
try {
|
|
28449
28520
|
const outputPath = resolvePath(state.resolvedPaths.buildDir, config.tailwind.output);
|
|
28450
28521
|
const bytes = await Bun.file(outputPath).bytes();
|
|
@@ -28465,6 +28536,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
28465
28536
|
const hasFilesToRebuild = filesToRebuild && filesToRebuild.length > 0;
|
|
28466
28537
|
const didReloadForIslandChange = hasFilesToRebuild ? await handleIslandSourceReload(state, config, filesToRebuild, manifest, duration) : false;
|
|
28467
28538
|
if (didReloadForIslandChange) {
|
|
28539
|
+
await runFrameworkFastPaths(state, config, affectedFrameworks, filesToRebuild ?? [], startTime, onRebuildComplete);
|
|
28468
28540
|
onRebuildComplete({ hmrState: state, manifest });
|
|
28469
28541
|
return manifest;
|
|
28470
28542
|
}
|
|
@@ -29154,6 +29226,9 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
29154
29226
|
await handleCachedReload();
|
|
29155
29227
|
return cached;
|
|
29156
29228
|
}
|
|
29229
|
+
if (config.reactDirectory && !globalThis.__reactModuleRef) {
|
|
29230
|
+
globalThis.__reactModuleRef = await import("react");
|
|
29231
|
+
}
|
|
29157
29232
|
const startupSteps = [];
|
|
29158
29233
|
const recordStep = (label, startedAt) => {
|
|
29159
29234
|
const durationMs = performance.now() - startedAt;
|
|
@@ -29329,9 +29404,6 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
29329
29404
|
config.vueDirectory ? loadVendorFiles(state.assetStore, vueVendorDir, "vue") : Promise.resolve(),
|
|
29330
29405
|
loadVendorFiles(state.assetStore, depVendorDir, "vendor")
|
|
29331
29406
|
]);
|
|
29332
|
-
if (config.reactDirectory && !globalThis.__reactModuleRef) {
|
|
29333
|
-
globalThis.__reactModuleRef = await import("react");
|
|
29334
|
-
}
|
|
29335
29407
|
recordStep("load vendor files", stepStartedAt);
|
|
29336
29408
|
stepStartedAt = performance.now();
|
|
29337
29409
|
const { warmCompilers: warmCompilers2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
@@ -29403,5 +29475,5 @@ export {
|
|
|
29403
29475
|
build
|
|
29404
29476
|
};
|
|
29405
29477
|
|
|
29406
|
-
//# debugId=
|
|
29478
|
+
//# debugId=E52E72AFA6B6D77264756E2164756E21
|
|
29407
29479
|
//# sourceMappingURL=build.js.map
|