diff --git a/.github/scripts/frontend-js-size.mjs b/.github/scripts/frontend-js-size.mjs index 561fcd80c7..ca37ea518f 100644 --- a/.github/scripts/frontend-js-size.mjs +++ b/.github/scripts/frontend-js-size.mjs @@ -464,14 +464,14 @@ function renderFrontendChunkReport(before, after) { return [ '
', - `${formatChunkChangeSummary('Diffs', diffSummary)}`, + `${formatChunkChangeSummary('Chunk size diff', diffSummary)}`, '', chunkMarkdownTable(diffRows, diffTotal), '', '
', '', '
', - `${formatChunkChangeSummary('Startup', startupSummary)}`, + `${formatChunkChangeSummary('Startup chunk size', startupSummary)}`, '', chunkMarkdownTable(startupRows, startupTotal), '', @@ -493,11 +493,12 @@ function renderFrontendBundleReport(before, after) { const lines = [ ...renderVisualizerSummaryTable(before, after), '', - '
', - 'Top 10', - '', + //'
', + //'Top 10', + //'', ]; + /* for (const row of after.hotModules.slice(0, 10)) { lines.push(`- ${code(row.id)}: ${sharePercent(row.renderedLength, after.metrics.renderedLength)} (${formatBytes(row.renderedLength)})`); } @@ -524,6 +525,7 @@ function renderFrontendBundleReport(before, after) { '', '
', ); + */ return lines.join('\n'); } @@ -538,11 +540,11 @@ const afterStats = JSON.parse(await fs.readFile(afterStatsFile, 'utf8')); const body = [ marker, '', - `## Frontend Chunk Report`, + `## Frontend Bundle Report`, '', renderFrontendChunkReport(before, after), '', - '## Frontend Bundle Report', + '## Bundle Stats', '', renderFrontendBundleReport(collectVisualizerReport(beforeStats), collectVisualizerReport(afterStats)), ].join('\n');