Skip to content

Commit

Permalink
only record number ids
Browse files Browse the repository at this point in the history
fixes #7381
  • Loading branch information
sokra committed May 24, 2018
1 parent 962cea5 commit f026310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/RecordIdsPlugin.js
Expand Up @@ -21,6 +21,7 @@ class RecordIdsPlugin {
if (!records.modules.byIdentifier) records.modules.byIdentifier = {};
if (!records.modules.usedIds) records.modules.usedIds = {};
for (const module of modules) {
if (typeof module.id !== "number") continue;
const identifier = portableIds
? identifierUtils.makePathsRelative(
compiler.context,
Expand Down Expand Up @@ -110,6 +111,7 @@ class RecordIdsPlugin {
if (!records.chunks.bySource) records.chunks.bySource = {};
const usedIds = new Set();
for (const chunk of chunks) {
if (typeof chunk.id !== "number") continue;
const name = chunk.name;
if (name) records.chunks.byName[name] = chunk.id;
const sources = getChunkSources(chunk);
Expand Down

0 comments on commit f026310

Please sign in to comment.