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 (#15502)
  • Loading branch information
dominikg authored Jan 8, 2024
1 parent 260ebbf commit 1fcebeb
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 1fcebeb

Please sign in to comment.