From 9d6a1967634aa2aed9fb0209eec79d680a8e47c1 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 22 Jun 2026 10:08:44 +0900 Subject: [PATCH] Update frontend-bundle-visualizer-report.mjs --- .../frontend-bundle-visualizer-report.mjs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/scripts/frontend-bundle-visualizer-report.mjs b/.github/scripts/frontend-bundle-visualizer-report.mjs index 08bde45004..860fb91070 100644 --- a/.github/scripts/frontend-bundle-visualizer-report.mjs +++ b/.github/scripts/frontend-bundle-visualizer-report.mjs @@ -219,13 +219,14 @@ const afterData = JSON.parse(await readFile(afterFile, 'utf8')); const before = collectReport(beforeData); const after = collectReport(afterData); const lines = [ - '# Bundle Report', + '# Frontend Bundle Report', '', ...renderSummaryTable(before, after), '', ...renderMetricTable(before, after), '', - '## Top 10', + '
', + 'Top 10', '', ]; @@ -235,7 +236,13 @@ for (const row of after.hotModules.slice(0, 10)) { lines.push( '', - '## Hot Modules (Self Size)', + '
', +); + +lines.push( + '', + '
', + 'Hot Modules (Self Size)', '', '| Module | Bundles | Rendered | Share | Gzip | Brotli | Imports | Imported By |', '|---|---:|---:|---:|---:|---:|---:|---:|', @@ -245,4 +252,9 @@ for (const row of after.hotModules.slice(0, 15)) { lines.push(`| ${tableCode(row.id)} | ${row.bundles} | ${formatBytes(row.renderedLength)} | ${sharePercent(row.renderedLength, after.metrics.renderedLength)} | ${formatBytes(row.gzipLength)} | ${formatBytes(row.brotliLength)} | ${row.importedCount} | ${row.importedByCount} |`); } +lines.push( + '', + '
', +); + await writeFile(outputFile, `${lines.join('\n')}\n`);