GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: keep the retained hot update directory after a failed clean · webpack/webpack@78f92f7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/output
    • CleanPlugin.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/output/CleanPlugin.js‎

Copy file name to clipboardExpand all lines: lib/output/CleanPlugin.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,12 @@ class CleanPlugin {
454454
}
455455
}
456456

457+
// the retained set counts as emitted, so neither it nor its directory
458+
// is removed; with timestamp 0 it goes once a newer set replaces it
459+
for (const asset of lastHotUpdateAssets) {
460+
if (!currentAssets.has(asset)) currentAssets.set(asset, 0);
461+
}
462+
457463
const outputPath = compilation.getPath(compiler.outputPath, {});
458464

459465
/**
@@ -479,7 +485,6 @@ class CleanPlugin {
479485
return;
480486
}
481487
const removed = /** @type {Diff} */ (diff);
482-
for (const asset of lastHotUpdateAssets) removed.delete(asset);
483488
applyDiff(
484489
fs,
485490
outputPath,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.