Skip to content

Commit 3d272ac

Browse files
committed
fix: restore modules property of ConcatenatedModule (fixes webpack#5477)
1 parent 7a36951 commit 3d272ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/optimize/ConcatenatedModule.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ class ConcatenatedModule extends Module {
214214
}
215215

216216
get modules() {
217-
return this._orderedConcatenationList.map(m => m.module);
217+
return this._orderedConcatenationList
218+
.filter(info => info.type === "concatenated")
219+
.map(info => info.module);
218220
}
219221

220222
identifier() {

0 commit comments

Comments
 (0)