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 {
183183 const moduleExports = { } ;
184184 [ '' , '*' ] . concat ( mod . buildMeta . providedExports ) . forEach ( name => {
185185 moduleExports [ name ] = {
186- id : mod . id ,
186+ id : id ,
187187 chunks : chunkIds ,
188188 name : name ,
189189 } ;
@@ -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 } ) ;
You can’t perform that action at this time.
0 commit comments