Skip to content

Commit 186ec7b

Browse files
author
Stefano Pongelli
committed
feat(logger): make file path clickable in terminal
1 parent 5635612 commit 186ec7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite-plugin-checker/src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function diagnosticToTerminalLog(
104104

105105
const levelLabel = labelMap[d.level ?? DiagnosticLevel.Error]
106106
const fileLabel = boldBlack.bgCyanBright(' FILE ') + ' '
107-
const filePath = "file://" + d.id
107+
const filePath = 'file://' + d.id
108108
const position = d.loc
109109
? chalk.yellow(d.loc.start.line) + ':' + chalk.yellow(d.loc.start.column)
110110
: ''

0 commit comments

Comments
 (0)