MCPcopy
hub / github.com/webpack/webpack / storeOptimizationEntry

Method storeOptimizationEntry

lib/FileSystemInfo.js:743–755  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

741 * @returns {void}
742 */
743 const storeOptimizationEntry = (entry) => {
744 for (const path of /** @type {SnapshotContent} */ (
745 entry.snapshotContent
746 )) {
747 const old =
748 /** @type {SnapshotOptimizationEntry} */
749 (this._map.get(path));
750 if (old.shared < entry.shared) {
751 this._map.set(path, entry);
752 }
753 capturedFiles.delete(path);
754 }
755 };
756
757 /** @type {SnapshotOptimizationEntry | undefined} */
758 let newOptimizationEntry;

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected