@absolutejs/absolute 0.19.0-beta.833 → 0.19.0-beta.835
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 +16 -5
- package/dist/build.js.map +4 -4
- package/dist/index.js +16 -5
- package/dist/index.js.map +4 -4
- package/dist/src/dev/moduleServer.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15357,6 +15357,7 @@ var init_ssrCache = __esm(() => {
|
|
|
15357
15357
|
// src/dev/moduleServer.ts
|
|
15358
15358
|
var exports_moduleServer = {};
|
|
15359
15359
|
__export(exports_moduleServer, {
|
|
15360
|
+
warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported,
|
|
15360
15361
|
warmCompilers: () => warmCompilers,
|
|
15361
15362
|
warmCache: () => warmCache,
|
|
15362
15363
|
setGlobalModuleServer: () => setGlobalModuleServer,
|
|
@@ -15536,7 +15537,6 @@ ${code}`;
|
|
|
15536
15537
|
reactFastRefreshWarningEmitted = true;
|
|
15537
15538
|
logWarn("React HMR is blocked: this Bun build ignores " + "`reactFastRefresh` on Bun.Transpiler, so component state " + "cannot be preserved across edits. Tracking " + "https://github.com/oven-sh/bun/pull/28312 \u2014 if it still has " + "not merged, leave a \uD83D\uDC4D on the PR so the Bun team knows it " + "is blocking you. Until then, React edits trigger a full " + "reload instead of a fast refresh.");
|
|
15538
15539
|
}, transformReactFile = (filePath, projectRoot, rewriter) => {
|
|
15539
|
-
warnIfReactFastRefreshUnsupported();
|
|
15540
15540
|
const raw = readFileSync16(filePath, "utf-8");
|
|
15541
15541
|
const valueExports = tsxTranspiler.scan(raw).exports;
|
|
15542
15542
|
let transpiled = reactTranspiler.transformSync(raw);
|
|
@@ -16576,13 +16576,22 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
16576
16576
|
const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
|
|
16577
16577
|
const { getAngularServerVendorPaths: getAngularServerVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
16578
16578
|
const angServerVendorPaths = getAngularServerVendorPaths2();
|
|
16579
|
+
const ssrPaths = angServerVendorPaths ? serverPaths.map((serverPath) => serverPath.replace(/\.js$/, ".ssr.js")) : serverPaths;
|
|
16579
16580
|
if (serverPaths.length > 0 && angServerVendorPaths) {
|
|
16581
|
+
const { copyFile } = await import("fs/promises");
|
|
16580
16582
|
const { rewriteImports: rewriteImports3 } = await Promise.resolve().then(() => (init_rewriteImports(), exports_rewriteImports));
|
|
16581
|
-
await
|
|
16583
|
+
await Promise.all(serverPaths.map((serverPath, idx) => {
|
|
16584
|
+
const ssrPath = ssrPaths[idx];
|
|
16585
|
+
if (!ssrPath)
|
|
16586
|
+
return Promise.resolve();
|
|
16587
|
+
return copyFile(serverPath, ssrPath);
|
|
16588
|
+
}));
|
|
16589
|
+
await rewriteImports3(ssrPaths, angServerVendorPaths);
|
|
16582
16590
|
}
|
|
16583
|
-
serverPaths.forEach((serverPath) => {
|
|
16591
|
+
serverPaths.forEach((serverPath, idx) => {
|
|
16584
16592
|
const fileBase = basename11(serverPath, ".js");
|
|
16585
|
-
|
|
16593
|
+
const ssrPath = ssrPaths[idx] ?? serverPath;
|
|
16594
|
+
state.manifest[toPascal(fileBase)] = resolve31(ssrPath);
|
|
16586
16595
|
});
|
|
16587
16596
|
if (clientPaths.length > 0) {
|
|
16588
16597
|
await bundleAngularClient(state, clientPaths, state.resolvedPaths.buildDir);
|
|
@@ -16668,6 +16677,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
16668
16677
|
onRebuildComplete({ hmrState: state, manifest: state.manifest });
|
|
16669
16678
|
return state.manifest;
|
|
16670
16679
|
}
|
|
16680
|
+
const { warnIfReactFastRefreshUnsupported: warnIfReactFastRefreshUnsupported2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
16681
|
+
warnIfReactFastRefreshUnsupported2();
|
|
16671
16682
|
return handleReactModuleServerPath(state, reactFiles, startTime, onRebuildComplete);
|
|
16672
16683
|
}, handleServerManifestUpdate = (state, serverResult) => {
|
|
16673
16684
|
if (!serverResult?.success) {
|
|
@@ -26740,5 +26751,5 @@ export {
|
|
|
26740
26751
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26741
26752
|
};
|
|
26742
26753
|
|
|
26743
|
-
//# debugId=
|
|
26754
|
+
//# debugId=499C2EC83121D7CA64756E2164756E21
|
|
26744
26755
|
//# sourceMappingURL=index.js.map
|