Skip to content

Commit

Permalink
fix: set forceColor to Chalk
Browse files Browse the repository at this point in the history
😅 WTF
  • Loading branch information
fi3ework committed Jul 17, 2021
1 parent cb17837 commit c4c6887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vite-plugin-checker/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ export function createFrame({
source: string
location: SourceLocation
}) {
const frame = codeFrameColumns(source, location)
const frame = codeFrameColumns(source, location, {
// worker tty did not fork parent process stdout, let's make a workaround
forceColor: true,
})
.split('\n')
.map((line) => ' ' + line)
.join(os.EOL)
Expand Down

0 comments on commit c4c6887

Please sign in to comment.