Skip to content

Commit

Permalink
Add support for concatenated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 12, 2020
1 parent 1b63456 commit 8fb9cf7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ export default class ReactFlightWebpackPlugin {
chunkGroup.chunks.forEach(chunk => {
chunk.getModules().forEach(mod => {
recordModule(mod.id, mod);
// If this is a concatenation, register each child to the parent ID.
if (mod.modules) {
mod.modules.forEach(concatenatedMod => {
recordModule(mod.id, concatenatedMod);
});
}
});
});
});
Expand Down

0 comments on commit 8fb9cf7

Please sign in to comment.