(entry)
| 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; |