@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-8761LJ/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-8761LJ/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-8761LJ/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
|
@@ -15260,6 +15260,7 @@ var init_ssrCache = __esm(() => {
|
|
|
15260
15260
|
// src/dev/moduleServer.ts
|
|
15261
15261
|
var exports_moduleServer = {};
|
|
15262
15262
|
__export(exports_moduleServer, {
|
|
15263
|
+
warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported,
|
|
15263
15264
|
warmCompilers: () => warmCompilers,
|
|
15264
15265
|
warmCache: () => warmCache,
|
|
15265
15266
|
setGlobalModuleServer: () => setGlobalModuleServer,
|
|
@@ -15439,7 +15440,6 @@ ${code}`;
|
|
|
15439
15440
|
reactFastRefreshWarningEmitted = true;
|
|
15440
15441
|
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.");
|
|
15441
15442
|
}, transformReactFile = (filePath, projectRoot, rewriter) => {
|
|
15442
|
-
warnIfReactFastRefreshUnsupported();
|
|
15443
15443
|
const raw = readFileSync15(filePath, "utf-8");
|
|
15444
15444
|
const valueExports = tsxTranspiler.scan(raw).exports;
|
|
15445
15445
|
let transpiled = reactTranspiler.transformSync(raw);
|
|
@@ -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);
|
|
@@ -16571,6 +16580,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
16571
16580
|
onRebuildComplete({ hmrState: state, manifest: state.manifest });
|
|
16572
16581
|
return state.manifest;
|
|
16573
16582
|
}
|
|
16583
|
+
const { warnIfReactFastRefreshUnsupported: warnIfReactFastRefreshUnsupported2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
16584
|
+
warnIfReactFastRefreshUnsupported2();
|
|
16574
16585
|
return handleReactModuleServerPath(state, reactFiles, startTime, onRebuildComplete);
|
|
16575
16586
|
}, handleServerManifestUpdate = (state, serverResult) => {
|
|
16576
16587
|
if (!serverResult?.success) {
|
|
@@ -18145,5 +18156,5 @@ export {
|
|
|
18145
18156
|
build
|
|
18146
18157
|
};
|
|
18147
18158
|
|
|
18148
|
-
//# debugId=
|
|
18159
|
+
//# debugId=4324F1891A28F01564756E2164756E21
|
|
18149
18160
|
//# sourceMappingURL=build.js.map
|