What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
Please see the minimal repo I created to reproduce the issue: https://github.com/Geksanit/wp5-memory-leak.
1 yarn start
2 save any ts/tsx files without changes
What is the expected behavior?
I would expect some kind of garbage collection to happen in between compilations.
Other relevant information:
webpack version: 5.24.1
Node.js version: 12.19.0
Operating System: Win10
Additional tools: yarn 1.22.10