diff --git a/lib/Compilation.js b/lib/Compilation.js index 7ea061cfc..59501571a 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -276,28 +276,6 @@ class Compilation extends Tapable { const cacheName = (cacheGroup || "m") + identifier; if (this.cache && this.cache[cacheName]) { const cacheModule = this.cache[cacheName]; - - let rebuild = true; - if (this.fileTimestamps && this.contextTimestamps) { - rebuild = cacheModule.needRebuild( - this.fileTimestamps, - this.contextTimestamps - ); - } - - if (!rebuild) { - cacheModule.disconnect(); - this._modules.set(identifier, cacheModule); - this.modules.push(cacheModule); - for (const err of cacheModule.errors) this.errors.push(err); - for (const err of cacheModule.warnings) this.warnings.push(err); - return { - module: cacheModule, - issuer: true, - build: false, - dependencies: true - }; - } cacheModule.unbuild(); module = cacheModule; }