Skip to content

Commit

Permalink
fix: thrown error during chunk correlation of empty graph connection (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy authored and RussellCanfield committed Aug 26, 2023
1 parent 83eb876 commit 41992a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/node/src/plugins/ChunkCorrelationPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ class FederationStatsPlugin {
// Iterate over each dependency within the block.
for (const dep of blockmodule.dependencies) {
// Get the module that corresponds to the dependency.
const { module } = compilation.moduleGraph.getConnection(dep);
const connection = compilation.moduleGraph.getConnection(dep);
if(!connection) continue;
const { module } = connection;
const moduleChunks =
compilation.chunkGraph.getModuleChunksIterable(module);
// Iterate over each chunk associated with the module.
Expand Down

0 comments on commit 41992a3

Please sign in to comment.