Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

[Draft] Fix webpack 5 persistent cache invalidation #5

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove the old context touch file
These are not always removed on process exit and definitely not removed when rebooting the watcher.
  • Loading branch information
thecrypticace committed Mar 3, 2021
commit e52d714a0e42d0a56cb839018790cc02a8694b80
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ function cleanupContext(context) {
if (context.watcher) {
context.watcher.close()
}
if (context.touchFile) {
context.touchFile.removeCallback()
}
contextMap.delete(context.configHash)
contextSources.delete(context)
}
Expand Down