From f6cfe15860ca75fe6cf340d1ae848ace36152a55 Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Tue, 23 Jun 2026 16:31:17 +0900
Subject: [PATCH] chore(dev): tweak frontend-js-size.mjs
---
.github/scripts/frontend-js-size.mjs | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
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');