Skip to content

Commit

Permalink
fix(esbuild): update to tsconfck 3.0.1 to fix edge cases when resolvi…
Browse files Browse the repository at this point in the history
…ng tsconfig.extends
  • Loading branch information
dominikg committed Jan 3, 2024
1 parent d2aa096 commit 7d30d32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"source-map-support": "^0.5.21",
"strip-ansi": "^7.1.0",
"strip-literal": "^2.0.0",
"tsconfck": "^3.0.0",
"tsconfck": "^3.0.1",
"tslib": "^2.6.2",
"types": "link:./types",
"ufo": "^1.3.2",
Expand Down
9 changes: 1 addition & 8 deletions packages/vite/src/node/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,7 @@ async function loadTsconfigJsonForFile(
filename: string,
): Promise<TSConfigJSON> {
try {
if (tsconfckCache) {
// shortcut, the cache stores resolved TSConfckParseResult
// so getting it from the cache directly we bypass async fn call wrapping it in a promise again
if (tsconfckCache.hasParseResult(filename)) {
const result = await tsconfckCache.getParseResult(filename)
return result.tsconfig
}
} else {
if (!tsconfckCache) {
tsconfckCache = new TSConfckCache<TSConfckParseResult>()
}
const result = await parse(filename, {
Expand Down
8 changes: 4 additions & 4 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 7d30d32

Please sign in to comment.