Skip to content

Commit 8fb9cf7

Browse files
committed
Add support for concatenated modules
1 parent 1b63456 commit 8fb9cf7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-server-dom-webpack/src/ReactFlightWebpackPlugin.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ export default class ReactFlightWebpackPlugin {
197197
chunkGroup.chunks.forEach(chunk => {
198198
chunk.getModules().forEach(mod => {
199199
recordModule(mod.id, mod);
200+
// If this is a concatenation, register each child to the parent ID.
201+
if (mod.modules) {
202+
mod.modules.forEach(concatenatedMod => {
203+
recordModule(mod.id, concatenatedMod);
204+
});
205+
}
200206
});
201207
});
202208
});

0 commit comments

Comments
 (0)