Skip to content

Commit

Permalink
chore(reporter): reuse clearLine (#13156)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed May 12, 2023
1 parent 9a7ec98 commit 535795a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/reporter.ts
Expand Up @@ -98,8 +98,7 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
buildEnd() {
if (shouldLogInfo) {
if (tty) {
process.stdout.clearLine(0)
process.stdout.cursorTo(0)
clearLine()
}
config.logger.info(
`${colors.green(`✓`)} ${transformedCount} modules transformed.`,
Expand Down

0 comments on commit 535795a

Please sign in to comment.