@absolutejs/absolute 0.18.2-beta.5 → 0.18.2-beta.7

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/build.js CHANGED
@@ -173594,6 +173594,7 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173594
173594
  }
173595
173595
  }, rebuildManifest = async (cached) => {
173596
173596
  const state = cached.hmrState;
173597
+ state.isRebuilding = true;
173597
173598
  try {
173598
173599
  const newManifest = await build({
173599
173600
  ...state.config,
@@ -173605,12 +173606,20 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173605
173606
  }
173606
173607
  });
173607
173608
  if (newManifest) {
173609
+ for (const key of Object.keys(cached.manifest)) {
173610
+ if (!(key in newManifest)) {
173611
+ delete cached.manifest[key];
173612
+ }
173613
+ }
173608
173614
  Object.assign(cached.manifest, newManifest);
173609
173615
  state.manifest = cached.manifest;
173610
173616
  await populateAssetStore(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173611
173617
  await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173612
173618
  }
173613
- } catch {}
173619
+ } catch {} finally {
173620
+ state.isRebuilding = false;
173621
+ state.fileChangeQueue.clear();
173622
+ }
173614
173623
  }, handleCachedReload = async () => {
173615
173624
  const serverMtime = statSync(resolve19(Bun.main)).mtimeMs;
173616
173625
  const lastMtime = globalThis.__hmrServerMtime;
@@ -173743,5 +173752,5 @@ export {
173743
173752
  build
173744
173753
  };
173745
173754
 
173746
- //# debugId=256520A365B546D664756E2164756E21
173755
+ //# debugId=0631AF5748E7099364756E2164756E21
173747
173756
  //# sourceMappingURL=build.js.map