Skip to content

Commit

Permalink
Fix DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET
Browse files Browse the repository at this point in the history
Convert Set to array before concat/filter.
  • Loading branch information
dmnsgn authored Jan 9, 2021
1 parent d216557 commit ea439a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/get-all-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ try {
* @return {NormalModule[]}
*/
function getAllModules(compilation) {
let modules = compilation.modules;
let modules = Array.from(compilation.modules);

// Look up in child compilations
if (compilation.children.length > 0) {
Expand Down

0 comments on commit ea439a2

Please sign in to comment.