mirror of https://github.com/webpack/webpack.git
				
				
				
			refactor: prefer destructuring approach
This commit is contained in:
		
							parent
							
								
									ee91b27e66
								
							
						
					
					
						commit
						357e707e2c
					
				|  | @ -78,7 +78,7 @@ const contextifySourceUrl = (context, source, associatedObjectForCache) => { | |||
|  */ | ||||
| const contextifySourceMap = (context, sourceMap, associatedObjectForCache) => { | ||||
| 	if (!Array.isArray(sourceMap.sources)) return sourceMap; | ||||
| 	const sourceRoot = sourceMap.sourceRoot; | ||||
| 	const { sourceRoot } = sourceMap; | ||||
| 	/** @type {function(string): string} */ | ||||
| 	const mapper = !sourceRoot | ||||
| 		? source => source | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue