mirror of https://github.com/webpack/webpack.git
Merge pull request #15430 from webpack/fix/use-correct-chunkgraph
use correct chunkgraph in runtime module
This commit is contained in:
commit
4abf353fbc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue