@absolutejs/absolute 0.18.3-beta.4 → 0.18.3-beta.6

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
@@ -171895,7 +171895,7 @@ var mimeTypes, getMimeType = (filePath) => {
171895
171895
  }
171896
171896
  const identity = stripHash(fullPath);
171897
171897
  const livePath = liveByIdentity.get(identity);
171898
- if (livePath && livePath !== fullPath) {
171898
+ if (livePath !== fullPath) {
171899
171899
  return unlink(fullPath).catch(() => {});
171900
171900
  }
171901
171901
  return null;
@@ -171944,9 +171944,14 @@ var mimeTypes, getMimeType = (filePath) => {
171944
171944
  continue;
171945
171945
  newIdentities.set(stripHash(webPath), webPath);
171946
171946
  }
171947
+ const liveWebPaths = new Set(newIdentities.values());
171947
171948
  const staleKeys = [...store.keys()].filter((existingPath) => {
171949
+ if (existingPath.includes("/chunk-"))
171950
+ return false;
171948
171951
  const replacement = newIdentities.get(stripHash(existingPath));
171949
- return replacement !== undefined && replacement !== existingPath;
171952
+ if (replacement !== undefined)
171953
+ return replacement !== existingPath;
171954
+ return !liveWebPaths.has(existingPath);
171950
171955
  });
171951
171956
  staleKeys.forEach((key) => store.delete(key));
171952
171957
  for (const webPath of newIdentities.values()) {
@@ -173610,6 +173615,11 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173610
173615
  }
173611
173616
  });
173612
173617
  if (newManifest) {
173618
+ for (const key of Object.keys(cached.manifest)) {
173619
+ if (!(key in newManifest)) {
173620
+ delete cached.manifest[key];
173621
+ }
173622
+ }
173613
173623
  Object.assign(cached.manifest, newManifest);
173614
173624
  state.manifest = cached.manifest;
173615
173625
  await populateAssetStore(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
@@ -173752,5 +173762,5 @@ export {
173752
173762
  build
173753
173763
  };
173754
173764
 
173755
- //# debugId=75A0C07A81FBA32864756E2164756E21
173765
+ //# debugId=35064AA62AA190C664756E2164756E21
173756
173766
  //# sourceMappingURL=build.js.map