Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit bf36e21

Browse files
ooflorentevilebottnawi
authored andcommitted
fix: chunks is a Set in webpack@5 (#365)
1 parent 96cfdb5 commit bf36e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class UglifyJsPlugin {
165165
const processedAssets = new WeakSet();
166166
const tasks = [];
167167

168-
chunks
168+
Array.from(chunks)
169169
.reduce((acc, chunk) => acc.concat(chunk.files || []), [])
170170
.concat(compilation.additionalChunkAssets || [])
171171
.filter(ModuleFilenameHelpers.matchObject.bind(null, this.options))

0 commit comments

Comments
 (0)