diff --git a/src/index.js b/src/index.js index 71be4d55..8e945520 100644 --- a/src/index.js +++ b/src/index.js @@ -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))