Skip to content

Commit

Permalink
fix: clean previous log
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jul 17, 2021
1 parent 66fbe8e commit cb17837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite-plugin-checker/src/checkers/typescript/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const createDiagnostic: CreateDiagnostic<'typescript'> = (pluginConfig) => {
case 6031:
case 6032:
// clear current error and use the newer errors
logChunk = ''
currErr = null
return
case 6193: // 1 Error
Expand All @@ -92,7 +93,7 @@ const createDiagnostic: CreateDiagnostic<'typescript'> = (pluginConfig) => {
logChunk = ''
}

console.log(logChunk + (errorCount ? os.EOL : '') + diagnostic.messageText.toString())
console.log(logChunk + os.EOL + diagnostic.messageText.toString())
})
}

Expand Down

0 comments on commit cb17837

Please sign in to comment.