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 839f0d1 commit 5a9973bCopy full SHA for 5a9973b
src/lib/extract-chunks.js
@@ -31,6 +31,7 @@ function getChunkEntryNames (chunk) {
31
}
32
33
34
+const processedGroups = new Set();
35
function getNames (groups) {
36
const Entrypoint = require('webpack/lib/Entrypoint')
37
const names = []
@@ -40,8 +41,10 @@ function getNames (groups) {
40
41
if (group.options.name) {
42
names.push(group.options.name)
43
- } else {
44
- names.push(...getNames(group.parentsIterable))
+ }
45
+ else if (!processedGroups.has(group)) {
46
+ processedGroups.add(group);
47
+ names.push(...getNames(group.parentsIterable));
48
49
50
return names
0 commit comments