Skip to content

Commit fa2b656

Browse files
committed
fix: Fix regression where manifest was not listed first in build summary
1 parent 2d1c41e commit fa2b656

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/core/log/printBuildSummary.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ const CHUNK_SORT_WEIGHTS: Record<string, number> = {
5757
};
5858
function getChunkSortWeight(filename: string) {
5959
return (
60-
Object.entries(CHUNK_SORT_WEIGHTS).find(([key, value]) => {
61-
if (filename.endsWith(key)) return value;
62-
})?.[1] ?? DEFAULT_SORT_WEIGHT
60+
Object.entries(CHUNK_SORT_WEIGHTS).find(([key]) =>
61+
filename.endsWith(key),
62+
)?.[1] ?? DEFAULT_SORT_WEIGHT
6363
);
6464
}
6565

@@ -72,8 +72,7 @@ const CHUNK_COLORS: Record<string, (text: string) => string> = {
7272
};
7373
function getChunkColor(filename: string) {
7474
return (
75-
Object.entries(CHUNK_COLORS).find(([key, value]) => {
76-
if (filename.endsWith(key)) return value;
77-
})?.[1] ?? DEFAULT_COLOR
75+
Object.entries(CHUNK_COLORS).find(([key]) => filename.endsWith(key))?.[1] ??
76+
DEFAULT_COLOR
7877
);
7978
}

0 commit comments

Comments
 (0)