Skip to content

Commit 535795a

Browse files
authored
chore(reporter): reuse clearLine (#13156)
1 parent 9a7ec98 commit 535795a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vite/src/node/plugins/reporter.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
9898
buildEnd() {
9999
if (shouldLogInfo) {
100100
if (tty) {
101-
process.stdout.clearLine(0)
102-
process.stdout.cursorTo(0)
101+
clearLine()
103102
}
104103
config.logger.info(
105104
`${colors.green(`✓`)} ${transformedCount} modules transformed.`,

0 commit comments

Comments
 (0)