Skip to content

Commit 8934430

Browse files
chore: Correct stats generation in webpack 5
1 parent 8e42fdd commit 8934430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function extractBundles(stats) {
226226
function buildModuleMap(modules) {
227227
var map = {};
228228
modules.forEach(function (module) {
229-
map[module.id] = module.name;
229+
map[module.id || module.index || module.identifier] = module.name;
230230
});
231231
return map;
232232
}

0 commit comments

Comments
 (0)