@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/index.js CHANGED
@@ -171920,7 +171920,7 @@ var mimeTypes, getMimeType = (filePath) => {
171920
171920
  }
171921
171921
  const identity = stripHash(fullPath);
171922
171922
  const livePath = liveByIdentity.get(identity);
171923
- if (livePath && livePath !== fullPath) {
171923
+ if (livePath !== fullPath) {
171924
171924
  return unlink(fullPath).catch(() => {});
171925
171925
  }
171926
171926
  return null;
@@ -171969,9 +171969,14 @@ var mimeTypes, getMimeType = (filePath) => {
171969
171969
  continue;
171970
171970
  newIdentities.set(stripHash(webPath), webPath);
171971
171971
  }
171972
+ const liveWebPaths = new Set(newIdentities.values());
171972
171973
  const staleKeys = [...store.keys()].filter((existingPath) => {
171974
+ if (existingPath.includes("/chunk-"))
171975
+ return false;
171973
171976
  const replacement = newIdentities.get(stripHash(existingPath));
171974
- return replacement !== undefined && replacement !== existingPath;
171977
+ if (replacement !== undefined)
171978
+ return replacement !== existingPath;
171979
+ return !liveWebPaths.has(existingPath);
171975
171980
  });
171976
171981
  staleKeys.forEach((key) => store.delete(key));
171977
171982
  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);
@@ -174176,5 +174186,5 @@ export {
174176
174186
  ANGULAR_INIT_TIMEOUT_MS
174177
174187
  };
174178
174188
 
174179
- //# debugId=DAC131174444595F64756E2164756E21
174189
+ //# debugId=491A915F28E1A16364756E2164756E21
174180
174190
  //# sourceMappingURL=index.js.map