diff --git a/packages/next/build/webpack/plugins/build-stats-plugin.ts b/packages/next/build/webpack/plugins/build-stats-plugin.ts index 83f2945b6cb6a..f3ab340f4c62a 100644 --- a/packages/next/build/webpack/plugins/build-stats-plugin.ts +++ b/packages/next/build/webpack/plugins/build-stats-plugin.ts @@ -39,7 +39,9 @@ function reduceSize(stats: any) { reducedModule.reasons = [] } - reducedModule.reasons.push(reason.id) + reducedModule.reasons.push({ + id: reason.id, + }) } } // Identifier is part of the Map