Skip to content

Commit

Permalink
fix(vue-tsc): compatible with vue-tsc@^1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Feb 17, 2023
1 parent f65aa71 commit 96b762b
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 38 deletions.
2 changes: 1 addition & 1 deletion packages/vite-plugin-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@
"typescript": "~4.5.5",
"vls": "^0.7.6",
"vti": "^0.1.7",
"vue-tsc": "^1.0.24"
"vue-tsc": "^1.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ async function overrideTscJs(tscJsPath: string) {
tryReplace(/supportedJSExtensions = .*(?=;)/, (s) => s + '.concat([[".vue"]])')
tryReplace(/allSupportedExtensions = .*(?=;)/, (s) => s + '.concat([[".vue"]])')

// proxy startTracing, dumpTracingLegend
tryReplace(/ = tracingEnabled\./g, ` = require(${JSON.stringify(proxyApiPath)}).loadTsLib().`)

// proxy createProgram apis
tryReplace(
/function createProgram\(.+\) {/,
Expand Down
2 changes: 1 addition & 1 deletion playground/vue-tsc-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"typescript": "~4.5.5",
"vite": "^4.0.4",
"vite-plugin-checker": "workspace:*",
"vue-tsc": "^1.0.24"
"vue-tsc": "^1.1.0"
}
}
138 changes: 105 additions & 33 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96b762b

Please sign in to comment.