From 8de7ec405cd52b858563ad4737dcffb59eb24e18 Mon Sep 17 00:00:00 2001 From: Ivan Kopeykin Date: Tue, 22 Feb 2022 15:32:28 +0300 Subject: [PATCH] use correct chunkgraph in runtime module --- lib/esm/ModuleChunkLoadingRuntimeModule.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/esm/ModuleChunkLoadingRuntimeModule.js b/lib/esm/ModuleChunkLoadingRuntimeModule.js index dd2476c7b25..4a846a7e4ef 100644 --- a/lib/esm/ModuleChunkLoadingRuntimeModule.js +++ b/lib/esm/ModuleChunkLoadingRuntimeModule.js @@ -80,10 +80,9 @@ class ModuleChunkLoadingRuntimeModule extends RuntimeModule { * @returns {string} runtime code */ generate() { - const { compilation, chunk } = this; + const { compilation, chunk, chunkGraph } = this; const { runtimeTemplate, - chunkGraph, outputOptions: { importFunctionName } } = compilation; const fn = RuntimeGlobals.ensureChunkHandlers;