diff --git a/lib/Compilation.js b/lib/Compilation.js index 7c0937848ef..8fcbea75f45 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -113,8 +113,6 @@ class Compilation extends Tapable { cacheModule.errors.forEach(err => this.errors.push(err), this); cacheModule.warnings.forEach(err => this.warnings.push(err), this); return cacheModule; - } else { - module.lastId = cacheModule.id; } } module.unbuild(); diff --git a/lib/Module.js b/lib/Module.js index 72400725751..a213bfa1a3a 100644 --- a/lib/Module.js +++ b/lib/Module.js @@ -28,7 +28,6 @@ class Module extends DependenciesBlock { this.context = null; this.reasons = []; this.debugId = debugId++; - this.lastId = -1; this.id = null; this.portableId = null; this.index = null; @@ -50,7 +49,6 @@ class Module extends DependenciesBlock { disconnect() { this.reasons.length = 0; - this.lastId = this.id; this.id = null; this.index = null; this.index2 = null; @@ -64,7 +62,6 @@ class Module extends DependenciesBlock { } unseal() { - this.lastId = this.id; this.id = null; this.index = null; this.index2 = null;