@absolutejs/absolute 0.19.0-beta.884 → 0.19.0-beta.885
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-RnaB85/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-RnaB85/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-RnaB85/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
|
@@ -20147,6 +20147,38 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
20147
20147
|
});
|
|
20148
20148
|
const { invalidateFingerprintCache: invalidateFingerprintCache2 } = await Promise.resolve().then(() => (init_fastHmrCompiler(), exports_fastHmrCompiler));
|
|
20149
20149
|
invalidateFingerprintCache2();
|
|
20150
|
+
}, angularBundleState, scheduleAngularBundleRebuild = (state, pageEntries, angularDir) => {
|
|
20151
|
+
const ctx = angularBundleState.get(state) ?? {
|
|
20152
|
+
inFlight: null,
|
|
20153
|
+
pending: false
|
|
20154
|
+
};
|
|
20155
|
+
angularBundleState.set(state, ctx);
|
|
20156
|
+
const doOne = async () => {
|
|
20157
|
+
if (pageEntries.length === 0)
|
|
20158
|
+
return;
|
|
20159
|
+
await compileAndBundleAngular(state, pageEntries, angularDir);
|
|
20160
|
+
markSsrCacheDirty("angular");
|
|
20161
|
+
};
|
|
20162
|
+
const drive = async () => {
|
|
20163
|
+
try {
|
|
20164
|
+
while (true) {
|
|
20165
|
+
ctx.pending = false;
|
|
20166
|
+
await doOne();
|
|
20167
|
+
if (!ctx.pending)
|
|
20168
|
+
break;
|
|
20169
|
+
}
|
|
20170
|
+
} finally {
|
|
20171
|
+
ctx.inFlight = null;
|
|
20172
|
+
}
|
|
20173
|
+
};
|
|
20174
|
+
return () => {
|
|
20175
|
+
if (ctx.inFlight) {
|
|
20176
|
+
ctx.pending = true;
|
|
20177
|
+
return ctx.inFlight;
|
|
20178
|
+
}
|
|
20179
|
+
ctx.inFlight = drive();
|
|
20180
|
+
return ctx.inFlight;
|
|
20181
|
+
};
|
|
20150
20182
|
}, compileAndBundleAngular = async (state, pageEntries, angularDir) => {
|
|
20151
20183
|
const { compileAngular: compileAngular2 } = await Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular));
|
|
20152
20184
|
const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
|
|
@@ -20189,12 +20221,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
20189
20221
|
const tierStart = performance.now();
|
|
20190
20222
|
const verdict = await decideAngularTier(state, angularDir);
|
|
20191
20223
|
const tierMs = (performance.now() - tierStart).toFixed(0);
|
|
20192
|
-
const runBundle =
|
|
20193
|
-
if (pageEntries.length === 0)
|
|
20194
|
-
return;
|
|
20195
|
-
await compileAndBundleAngular(state, pageEntries, angularDir);
|
|
20196
|
-
markSsrCacheDirty("angular");
|
|
20197
|
-
};
|
|
20224
|
+
const runBundle = scheduleAngularBundleRebuild(state, pageEntries, angularDir);
|
|
20198
20225
|
const queueDescription = (queue) => queue.map((e) => e.className).join(", ");
|
|
20199
20226
|
if (verdict.tier === 0) {
|
|
20200
20227
|
broadcastSurgical(state, verdict.queue);
|
|
@@ -21286,6 +21313,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
21286
21313
|
init_tailwindCompiler();
|
|
21287
21314
|
init_ssrCache();
|
|
21288
21315
|
moduleServerPromise = Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
21316
|
+
angularBundleState = new WeakMap;
|
|
21289
21317
|
getReactModuleUrl = getModuleUrl;
|
|
21290
21318
|
EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
|
|
21291
21319
|
HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
|
|
@@ -21934,5 +21962,5 @@ export {
|
|
|
21934
21962
|
build
|
|
21935
21963
|
};
|
|
21936
21964
|
|
|
21937
|
-
//# debugId=
|
|
21965
|
+
//# debugId=EBF9D862F6C2580C64756E2164756E21
|
|
21938
21966
|
//# sourceMappingURL=build.js.map
|