Skip to content

Commit

Permalink
Merge pull request #15430 from webpack/fix/use-correct-chunkgraph
Browse files Browse the repository at this point in the history
use correct chunkgraph in runtime module
  • Loading branch information
sokra committed Feb 23, 2022
2 parents 8d509e3 + 8de7ec4 commit 4abf353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/esm/ModuleChunkLoadingRuntimeModule.js
Expand Up @@ -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;
Expand Down

0 comments on commit 4abf353

Please sign in to comment.