We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce521e commit b3c271eCopy full SHA for b3c271e
packages/vite-plugin-checker/src/logger.ts
@@ -3,7 +3,12 @@ import fs from 'fs'
3
import { createRequire } from 'module'
4
import os from 'os'
5
import strip from 'strip-ansi'
6
-import vscodeUri from 'vscode-uri'
+import * as _vscodeUri from 'vscode-uri'
7
+
8
+// hack to compatible with Jiti
9
+// see details: https://github.com/fi3ework/vite-plugin-checker/issues/197
10
+// @ts-expect-error
11
+const URI = _vscodeUri?.default?.URI ?? _vscodeUri.URI
12
import { parentPort } from 'worker_threads'
13
14
import { codeFrameColumns, SourceLocation } from '@babel/code-frame'
@@ -32,7 +37,6 @@ import type {
32
37
LineAndCharacter,
33
38
} from 'typescript'
34
39
35
-const { URI } = vscodeUri
36
40
export interface NormalizedDiagnostic {
41
/** error message */
42
message?: string
0 commit comments