@absolutejs/absolute 0.19.0-beta.833 → 0.19.0-beta.834
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
|
@@ -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);
|
|
@@ -26740,5 +26749,5 @@ export {
|
|
|
26740
26749
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26741
26750
|
};
|
|
26742
26751
|
|
|
26743
|
-
//# debugId=
|
|
26752
|
+
//# debugId=4C836C9BC84C636964756E2164756E21
|
|
26744
26753
|
//# sourceMappingURL=index.js.map
|