Persistent Cache Invalidation on Configuration Changes
webpack 5 employs a persistent build cache stored in a .webpack directory by default, and its enhanced module resolver caches resolved paths to accelerate rebuilds. A documented behavior specifies that cache invalidation triggers on configuration changes rather than solely on file modifications, which can impact development workflow predictability. When cach