File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/react-server-dom-webpack/src Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export default class ReactFlightWebpackPlugin {
183
183
const moduleExports = { } ;
184
184
[ '' , '*' ] . concat ( mod . buildMeta . providedExports ) . forEach ( name => {
185
185
moduleExports [ name ] = {
186
- id : mod . id ,
186
+ id : id ,
187
187
chunks : chunkIds ,
188
188
name : name ,
189
189
} ;
@@ -197,6 +197,12 @@ export default class ReactFlightWebpackPlugin {
197
197
chunkGroup . chunks . forEach ( chunk => {
198
198
chunk . getModules ( ) . forEach ( mod => {
199
199
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
+ }
200
206
} ) ;
201
207
} ) ;
202
208
} ) ;
You can’t perform that action at this time.
0 commit comments