@absolutejs/absolute 0.19.0-beta.1102 → 0.19.0-beta.1103
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 +65 -41
- package/dist/build.js.map +4 -4
- package/dist/index.js +65 -41
- package/dist/index.js.map +4 -4
- package/dist/src/dev/rebuildTrigger.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39012,6 +39012,7 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
39012
39012
|
const state = cached2.hmrState;
|
|
39013
39013
|
await waitForRebuild(state);
|
|
39014
39014
|
state.isRebuilding = true;
|
|
39015
|
+
state.fileChangeQueue.clear();
|
|
39015
39016
|
try {
|
|
39016
39017
|
const buildResult = await build2({
|
|
39017
39018
|
...state.config,
|
|
@@ -39034,7 +39035,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
39034
39035
|
} catch {} finally {
|
|
39035
39036
|
state.rebuildCount++;
|
|
39036
39037
|
state.isRebuilding = false;
|
|
39037
|
-
state.
|
|
39038
|
+
drainPendingQueue(state, state.config, (newBuildResult) => {
|
|
39039
|
+
Object.assign(cached2.manifest, newBuildResult.manifest);
|
|
39040
|
+
state.manifest = cached2.manifest;
|
|
39041
|
+
});
|
|
39038
39042
|
}
|
|
39039
39043
|
}, handleCachedReload = async () => {
|
|
39040
39044
|
const serverMtime = statSync7(resolve44(Bun.main)).mtimeMs;
|
|
@@ -39149,6 +39153,56 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
39149
39153
|
stepStartedAt = performance.now();
|
|
39150
39154
|
await resolveAbsoluteVersion2();
|
|
39151
39155
|
recordStep("resolve version", stepStartedAt);
|
|
39156
|
+
const manifest = {};
|
|
39157
|
+
stepStartedAt = performance.now();
|
|
39158
|
+
const onWatcherRebuildComplete = (newBuildResult) => {
|
|
39159
|
+
Object.assign(manifest, newBuildResult.manifest);
|
|
39160
|
+
state.manifest = manifest;
|
|
39161
|
+
};
|
|
39162
|
+
const settleRecoveryQueue = () => {
|
|
39163
|
+
if (state.initialBuildFailed) {
|
|
39164
|
+
state.fileChangeQueue.clear();
|
|
39165
|
+
return;
|
|
39166
|
+
}
|
|
39167
|
+
drainPendingQueue(state, config2, onWatcherRebuildComplete);
|
|
39168
|
+
};
|
|
39169
|
+
const recoverFromColdStartFailure = async () => {
|
|
39170
|
+
await waitForRebuild(state);
|
|
39171
|
+
state.isRebuilding = true;
|
|
39172
|
+
state.fileChangeQueue.clear();
|
|
39173
|
+
try {
|
|
39174
|
+
const recoveryResult = await build2({
|
|
39175
|
+
...config2,
|
|
39176
|
+
mode: "development",
|
|
39177
|
+
options: {
|
|
39178
|
+
...config2.options,
|
|
39179
|
+
injectHMR: true,
|
|
39180
|
+
throwOnError: true
|
|
39181
|
+
}
|
|
39182
|
+
});
|
|
39183
|
+
if (recoveryResult?.manifest) {
|
|
39184
|
+
Object.assign(manifest, recoveryResult.manifest);
|
|
39185
|
+
state.manifest = manifest;
|
|
39186
|
+
await populateAssetStore(state.assetStore, manifest, state.resolvedPaths.buildDir);
|
|
39187
|
+
state.initialBuildFailed = false;
|
|
39188
|
+
console.log("[hmr] cold-start recovery rebuild succeeded \u2014 manifest populated.");
|
|
39189
|
+
}
|
|
39190
|
+
} catch {} finally {
|
|
39191
|
+
state.rebuildCount++;
|
|
39192
|
+
state.isRebuilding = false;
|
|
39193
|
+
settleRecoveryQueue();
|
|
39194
|
+
}
|
|
39195
|
+
};
|
|
39196
|
+
state.isRebuilding = true;
|
|
39197
|
+
startFileWatching(state, config2, (filePath) => {
|
|
39198
|
+
if (state.initialBuildFailed) {
|
|
39199
|
+
recoverFromColdStartFailure();
|
|
39200
|
+
return;
|
|
39201
|
+
}
|
|
39202
|
+
queueFileChange(state, filePath, config2, onWatcherRebuildComplete);
|
|
39203
|
+
});
|
|
39204
|
+
console.log("[hmr] watching for file changes \u2014 edits saved during the boot build are queued.");
|
|
39205
|
+
recordStep("start file watching", stepStartedAt);
|
|
39152
39206
|
const buildStart = performance.now();
|
|
39153
39207
|
let buildResult = null;
|
|
39154
39208
|
try {
|
|
@@ -39169,7 +39223,7 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
39169
39223
|
}
|
|
39170
39224
|
state.initialBuildFailed = true;
|
|
39171
39225
|
}
|
|
39172
|
-
|
|
39226
|
+
Object.assign(manifest, buildResult?.manifest ?? {});
|
|
39173
39227
|
const conventions2 = buildResult?.conventions ?? {};
|
|
39174
39228
|
if (buildResult?.errors && buildResult.errors.length > 0) {
|
|
39175
39229
|
state.lastBuildErrors = buildResult.errors;
|
|
@@ -39256,44 +39310,14 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
39256
39310
|
recordStep("warm tailwind compiler", stepStartedAt);
|
|
39257
39311
|
}
|
|
39258
39312
|
state.manifest = manifest;
|
|
39259
|
-
|
|
39260
|
-
|
|
39261
|
-
|
|
39262
|
-
|
|
39263
|
-
|
|
39264
|
-
|
|
39265
|
-
|
|
39266
|
-
|
|
39267
|
-
options: {
|
|
39268
|
-
...config2.options,
|
|
39269
|
-
injectHMR: true,
|
|
39270
|
-
throwOnError: true
|
|
39271
|
-
}
|
|
39272
|
-
});
|
|
39273
|
-
if (recoveryResult?.manifest) {
|
|
39274
|
-
Object.assign(manifest, recoveryResult.manifest);
|
|
39275
|
-
state.manifest = manifest;
|
|
39276
|
-
await populateAssetStore(state.assetStore, manifest, state.resolvedPaths.buildDir);
|
|
39277
|
-
state.initialBuildFailed = false;
|
|
39278
|
-
console.log("[hmr] cold-start recovery rebuild succeeded \u2014 manifest populated.");
|
|
39279
|
-
}
|
|
39280
|
-
} catch {} finally {
|
|
39281
|
-
state.rebuildCount++;
|
|
39282
|
-
state.isRebuilding = false;
|
|
39283
|
-
state.fileChangeQueue.clear();
|
|
39284
|
-
}
|
|
39285
|
-
};
|
|
39286
|
-
startFileWatching(state, config2, (filePath) => {
|
|
39287
|
-
if (state.initialBuildFailed) {
|
|
39288
|
-
recoverFromColdStartFailure();
|
|
39289
|
-
return;
|
|
39290
|
-
}
|
|
39291
|
-
queueFileChange(state, filePath, config2, (newBuildResult) => {
|
|
39292
|
-
Object.assign(manifest, newBuildResult.manifest);
|
|
39293
|
-
state.manifest = manifest;
|
|
39294
|
-
});
|
|
39295
|
-
});
|
|
39296
|
-
recordStep("start file watching", stepStartedAt);
|
|
39313
|
+
state.isRebuilding = false;
|
|
39314
|
+
if (state.fileChangeQueue.size > 0 && state.initialBuildFailed) {
|
|
39315
|
+
state.fileChangeQueue.clear();
|
|
39316
|
+
recoverFromColdStartFailure();
|
|
39317
|
+
} else if (state.fileChangeQueue.size > 0) {
|
|
39318
|
+
console.log("[hmr] edits landed during the boot build \u2014 rebuilding to pick them up.");
|
|
39319
|
+
drainPendingQueue(state, config2, onWatcherRebuildComplete);
|
|
39320
|
+
}
|
|
39297
39321
|
globalThis.__hmrBuildDuration = performance.now() - buildStart;
|
|
39298
39322
|
logStartupTimingBlock("AbsoluteJS devBuild timing", startupSteps);
|
|
39299
39323
|
const result = {
|
|
@@ -48293,5 +48317,5 @@ export {
|
|
|
48293
48317
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48294
48318
|
};
|
|
48295
48319
|
|
|
48296
|
-
//# debugId=
|
|
48320
|
+
//# debugId=D8FFE763B112EC2764756E2164756E21
|
|
48297
48321
|
//# sourceMappingURL=index.js.map
|