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

Commit

Permalink
fix: chunks is a Set in webpack@5 (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooflorent authored and evilebottnawi committed Oct 12, 2018
1 parent 96cfdb5 commit bf36e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -165,7 +165,7 @@ class UglifyJsPlugin {
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 bf36e21

Please sign in to comment.