Skip to content

Commit 8bef662

Browse files
authored
chore(optimizer): show full optimized deps list (#12686)
1 parent 89e4977 commit 8bef662

File tree

1 file changed

+1
-12
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+1
-12
lines changed

packages/vite/src/node/optimizer/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -437,18 +437,7 @@ export function toDiscoveredDependencies(
437437
}
438438

439439
export function depsLogString(qualifiedIds: string[]): string {
440-
if (debug) {
441-
return colors.yellow(qualifiedIds.join(`, `))
442-
} else {
443-
const total = qualifiedIds.length
444-
const maxListed = 5
445-
const listed = Math.min(total, maxListed)
446-
const extra = Math.max(0, total - maxListed)
447-
return colors.yellow(
448-
qualifiedIds.slice(0, listed).join(`, `) +
449-
(extra > 0 ? `, ...and ${extra} more` : ``),
450-
)
451-
}
440+
return colors.yellow(qualifiedIds.join(`, `))
452441
}
453442

454443
/**

0 commit comments

Comments
 (0)