Skip to content

Commit 96b762b

Browse files
committed
fix(vue-tsc): compatible with vue-tsc@^1.1.0
#222
1 parent f65aa71 commit 96b762b

File tree

4 files changed

+107
-38
lines changed

4 files changed

+107
-38
lines changed

packages/vite-plugin-checker/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@
110110
"typescript": "~4.5.5",
111111
"vls": "^0.7.6",
112112
"vti": "^0.1.7",
113-
"vue-tsc": "^1.0.24"
113+
"vue-tsc": "^1.1.0"
114114
}
115115
}

packages/vite-plugin-checker/src/checkers/vueTsc/prepareVueTsc.ts

-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ async function overrideTscJs(tscJsPath: string) {
7777
tryReplace(/supportedJSExtensions = .*(?=;)/, (s) => s + '.concat([[".vue"]])')
7878
tryReplace(/allSupportedExtensions = .*(?=;)/, (s) => s + '.concat([[".vue"]])')
7979

80-
// proxy startTracing, dumpTracingLegend
81-
tryReplace(/ = tracingEnabled\./g, ` = require(${JSON.stringify(proxyApiPath)}).loadTsLib().`)
82-
8380
// proxy createProgram apis
8481
tryReplace(
8582
/function createProgram\(.+\) {/,

playground/vue-tsc-vue3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"typescript": "~4.5.5",
1717
"vite": "^4.0.4",
1818
"vite-plugin-checker": "workspace:*",
19-
"vue-tsc": "^1.0.24"
19+
"vue-tsc": "^1.1.0"
2020
}
2121
}

pnpm-lock.yaml

+105-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)