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