Skip to content

Commit

Permalink
fix: chunks is a Set in webpack@5 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooflorent authored and evilebottnawi committed Oct 12, 2018
1 parent abf1a4d commit df8c425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class TerserPlugin {
const processedAssets = new WeakSet();
const tasks = [];

chunks
Array.from(chunks)
.reduce((acc, chunk) => acc.concat(chunk.files || []), [])
.concat(compilation.additionalChunkAssets || [])
.filter(ModuleFilenameHelpers.matchObject.bind(null, this.options))
Expand Down

0 comments on commit df8c425

Please sign in to comment.