Skip to content

Commit

Permalink
forgot to return mainBundleRow in getTableHtmlForSizeMetrics if no si…
Browse files Browse the repository at this point in the history
…ngleExportSizes
  • Loading branch information
dcastil committed Jun 23, 2024
1 parent 5d8b334 commit 8781595
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export function getSizeMetricsReportContent(entryPointSizesHead, entryPointSizes
*/
function getEntryPointSizeMetrics(entryPointSizesHead, entryPointSizesBase) {
const baseEntryPointSizesMap = new Map(
entryPointSizesBase.map((bundleSize) => [bundleSize.bundleSize.label, bundleSize]),
entryPointSizesBase.map((entryPointSize) => [
entryPointSize.bundleSize.label,
entryPointSize,
]),
)

return entryPointSizesHead.map(({ bundleSize, singleExportSizes }) => {
Expand Down Expand Up @@ -127,7 +130,7 @@ function getTableHtmlForSizeMetrics(entryPointSizeMetrics) {
]
}

return []
return [mainBundleRow]
}),
})
}
Expand Down

0 comments on commit 8781595

Please sign in to comment.