@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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-qIuW8O/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-
|
|
4
|
+
// .angular-partial-tmp-qIuW8O/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-
|
|
51
|
+
// .angular-partial-tmp-qIuW8O/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
|
@@ -16479,13 +16479,22 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
16479
16479
|
const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
|
|
16480
16480
|
const { getAngularServerVendorPaths: getAngularServerVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
16481
16481
|
const angServerVendorPaths = getAngularServerVendorPaths2();
|
|
16482
|
+
const ssrPaths = angServerVendorPaths ? serverPaths.map((serverPath) => serverPath.replace(/\.js$/, ".ssr.js")) : serverPaths;
|
|
16482
16483
|
if (serverPaths.length > 0 && angServerVendorPaths) {
|
|
16484
|
+
const { copyFile } = await import("fs/promises");
|
|
16483
16485
|
const { rewriteImports: rewriteImports3 } = await Promise.resolve().then(() => (init_rewriteImports(), exports_rewriteImports));
|
|
16484
|
-
await
|
|
16486
|
+
await Promise.all(serverPaths.map((serverPath, idx) => {
|
|
16487
|
+
const ssrPath = ssrPaths[idx];
|
|
16488
|
+
if (!ssrPath)
|
|
16489
|
+
return Promise.resolve();
|
|
16490
|
+
return copyFile(serverPath, ssrPath);
|
|
16491
|
+
}));
|
|
16492
|
+
await rewriteImports3(ssrPaths, angServerVendorPaths);
|
|
16485
16493
|
}
|
|
16486
|
-
serverPaths.forEach((serverPath) => {
|
|
16494
|
+
serverPaths.forEach((serverPath, idx) => {
|
|
16487
16495
|
const fileBase = basename10(serverPath, ".js");
|
|
16488
|
-
|
|
16496
|
+
const ssrPath = ssrPaths[idx] ?? serverPath;
|
|
16497
|
+
state.manifest[toPascal(fileBase)] = resolve29(ssrPath);
|
|
16489
16498
|
});
|
|
16490
16499
|
if (clientPaths.length > 0) {
|
|
16491
16500
|
await bundleAngularClient(state, clientPaths, state.resolvedPaths.buildDir);
|
|
@@ -18145,5 +18154,5 @@ export {
|
|
|
18145
18154
|
build
|
|
18146
18155
|
};
|
|
18147
18156
|
|
|
18148
|
-
//# debugId=
|
|
18157
|
+
//# debugId=324E7F2682AE824164756E2164756E21
|
|
18149
18158
|
//# sourceMappingURL=build.js.map
|