Skip to content

Commit

Permalink
Don't include module's own module id in reasons for module being used
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Feb 7, 2021
1 parent 5693872 commit a4f4e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack/plugins/build-stats-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function reduceSize(stats: any) {

if (module.reasons) {
for (const reason of module.reasons) {
if (!reason.moduleName) {
if (!reason.moduleName || reason.moduleId === module.id) {
continue
}

Expand Down

0 comments on commit a4f4e8f

Please sign in to comment.