We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 962cea5 commit f026310Copy full SHA for f026310
lib/RecordIdsPlugin.js
@@ -21,6 +21,7 @@ class RecordIdsPlugin {
21
if (!records.modules.byIdentifier) records.modules.byIdentifier = {};
22
if (!records.modules.usedIds) records.modules.usedIds = {};
23
for (const module of modules) {
24
+ if (typeof module.id !== "number") continue;
25
const identifier = portableIds
26
? identifierUtils.makePathsRelative(
27
compiler.context,
@@ -110,6 +111,7 @@ class RecordIdsPlugin {
110
111
if (!records.chunks.bySource) records.chunks.bySource = {};
112
const usedIds = new Set();
113
for (const chunk of chunks) {
114
+ if (typeof chunk.id !== "number") continue;
115
const name = chunk.name;
116
if (name) records.chunks.byName[name] = chunk.id;
117
const sources = getChunkSources(chunk);
0 commit comments