From d54b948085ef515cdf192109ad5f7750efb75535 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 22 Jun 2026 22:22:36 +0900 Subject: [PATCH] enhance(dev): tweak Frontend Chunk Report --- .github/scripts/frontend-js-size.mjs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/scripts/frontend-js-size.mjs b/.github/scripts/frontend-js-size.mjs index 310bd2aa34..e43266daea 100644 --- a/.github/scripts/frontend-js-size.mjs +++ b/.github/scripts/frontend-js-size.mjs @@ -271,7 +271,7 @@ const allChunkKeys = [ ...addedKeys(before, after), ...removedKeys(before, after), ]; -const comparisonRows = getChunkComparisonRows(commonChunkKeys, before, after); +//const comparisonRows = getChunkComparisonRows(commonChunkKeys, before, after); const allComparisonRows = getChunkComparisonRows(allChunkKeys, before, after); const changedRows = allComparisonRows.filter((row) => row.changeType !== 'unchanged'); @@ -295,9 +295,9 @@ const startupTotal = { afterSize: startupComparisonRows.reduce((sum, row) => sum + row.afterSize, 0), }; -const largeRows = comparisonRows - .sort((a, b) => b.sortSize - a.sortSize || a.name.localeCompare(b.name)) - .slice(0, 30); +//const largeRows = comparisonRows +// .sort((a, b) => b.sortSize - a.sortSize || a.name.localeCompare(b.name)) +// .slice(0, 30); const body = [ marker, @@ -319,13 +319,13 @@ const body = [ '', '', '', - '
', - `Largest`, - '', - markdownTable(largeRows), - '', - '
', - '', + //'
', + //`Largest`, + //'', + //markdownTable(largeRows), + //'', + //'
', + //'', ].join('\n'); await fs.writeFile(outFile, body);