File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/vite-plugin-checker/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ import fs from 'fs'
3
3
import { createRequire } from 'module'
4
4
import os from 'os'
5
5
import strip from 'strip-ansi'
6
- import vscodeUri from 'vscode-uri'
6
+ 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
7
12
import { parentPort } from 'worker_threads'
8
13
9
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 {
37
41
/** error message */
38
42
message ?: string
You can’t perform that action at this time.
0 commit comments