mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	debug-require-webpack-plugin: Handle missing chunkGraph.
This seems to be triggered by mini-css-extract-plugin@2.4.0. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							ea88ec9e06
						
					
				
				
					commit
					51971a48f3
				
			@@ -74,6 +74,10 @@ export default class DebugRequirePlugin implements WebpackPluginInstance {
 | 
			
		||||
            compilation.mainTemplate.hooks.bootstrap.tap(
 | 
			
		||||
                "DebugRequirePlugin",
 | 
			
		||||
                (source: string, chunk: Chunk) => {
 | 
			
		||||
                    if (compilation.chunkGraph === undefined) {
 | 
			
		||||
                        return source;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    const ids: [string, string | number][] = [];
 | 
			
		||||
                    let hasDebugRequire = false;
 | 
			
		||||
                    compilation.chunkGraph.hasModuleInGraph(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user