mirror of https://github.com/webpack/webpack.git
				
				
				
			Remove dead code in Compilation.js
This commit is contained in:
		
							parent
							
								
									54ceb3c04d
								
							
						
					
					
						commit
						847bfa4c63
					
				|  | @ -276,28 +276,6 @@ class Compilation extends Tapable { | ||||||
| 		const cacheName = (cacheGroup || "m") + identifier; | 		const cacheName = (cacheGroup || "m") + identifier; | ||||||
| 		if (this.cache && this.cache[cacheName]) { | 		if (this.cache && this.cache[cacheName]) { | ||||||
| 			const cacheModule = 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(); | 			cacheModule.unbuild(); | ||||||
| 			module = cacheModule; | 			module = cacheModule; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue