File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class RecordIdsPlugin {
21
21
if ( ! records . modules . byIdentifier ) records . modules . byIdentifier = { } ;
22
22
if ( ! records . modules . usedIds ) records . modules . usedIds = { } ;
23
23
for ( const module of modules ) {
24
+ if ( typeof module . id !== "number" ) continue ;
24
25
const identifier = portableIds
25
26
? identifierUtils . makePathsRelative (
26
27
compiler . context ,
@@ -110,6 +111,7 @@ class RecordIdsPlugin {
110
111
if ( ! records . chunks . bySource ) records . chunks . bySource = { } ;
111
112
const usedIds = new Set ( ) ;
112
113
for ( const chunk of chunks ) {
114
+ if ( typeof chunk . id !== "number" ) continue ;
113
115
const name = chunk . name ;
114
116
if ( name ) records . chunks . byName [ name ] = chunk . id ;
115
117
const sources = getChunkSources ( chunk ) ;
You can’t perform that action at this time.
0 commit comments