Skip to content

Commit

Permalink
fix: Fix regression where manifest was not listed first in build summary
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jul 13, 2023
1 parent 2d1c41e commit fa2b656
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/log/printBuildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const CHUNK_SORT_WEIGHTS: Record<string, number> = {
};
function getChunkSortWeight(filename: string) {
return (
Object.entries(CHUNK_SORT_WEIGHTS).find(([key, value]) => {
if (filename.endsWith(key)) return value;
})?.[1] ?? DEFAULT_SORT_WEIGHT
Object.entries(CHUNK_SORT_WEIGHTS).find(([key]) =>
filename.endsWith(key),
)?.[1] ?? DEFAULT_SORT_WEIGHT
);
}

Expand All @@ -72,8 +72,7 @@ const CHUNK_COLORS: Record<string, (text: string) => string> = {
};
function getChunkColor(filename: string) {
return (
Object.entries(CHUNK_COLORS).find(([key, value]) => {
if (filename.endsWith(key)) return value;
})?.[1] ?? DEFAULT_COLOR
Object.entries(CHUNK_COLORS).find(([key]) => filename.endsWith(key))?.[1] ??
DEFAULT_COLOR
);
}

0 comments on commit fa2b656

Please sign in to comment.