Home / Function/ loadTsconfigJsonForFile() — vite Function Reference

loadTsconfigJsonForFile() — vite Function Reference

Architecture documentation for the loadTsconfigJsonForFile() function in esbuild.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  bf7f9c91_a198_bc30_3101_285b2049912d["loadTsconfigJsonForFile()"]
  926e3b98_b813_2ff8_abb3_16447ab95544["esbuild.ts"]
  bf7f9c91_a198_bc30_3101_285b2049912d -->|defined in| 926e3b98_b813_2ff8_abb3_16447ab95544
  bf4a41be_9dbf_35be_2072_4283cd478ae7["transformWithEsbuild()"]
  bf4a41be_9dbf_35be_2072_4283cd478ae7 -->|calls| bf7f9c91_a198_bc30_3101_285b2049912d
  047aa0d5_25bc_9eb0_8c41_99a2be202642["transformWithOxc()"]
  047aa0d5_25bc_9eb0_8c41_99a2be202642 -->|calls| bf7f9c91_a198_bc30_3101_285b2049912d
  3de29a47_1def_0c91_7d68_ab9432fe0bd3["getTSConfckCache()"]
  bf7f9c91_a198_bc30_3101_285b2049912d -->|calls| 3de29a47_1def_0c91_7d68_ab9432fe0bd3
  style bf7f9c91_a198_bc30_3101_285b2049912d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/esbuild.ts lines 543–552

export async function loadTsconfigJsonForFile(
  filename: string,
  config?: ResolvedConfig,
): Promise<{ tsconfigFile: string; tsconfig: TSConfigJSON }> {
  const { tsconfig, tsconfigFile } = await parse(filename, {
    cache: getTSConfckCache(config),
    ignoreNodeModules: true,
  })
  return { tsconfigFile, tsconfig }
}

Domain

Subdomains

Frequently Asked Questions

What does loadTsconfigJsonForFile() do?
loadTsconfigJsonForFile() is a function in the vite codebase, defined in packages/vite/src/node/plugins/esbuild.ts.
Where is loadTsconfigJsonForFile() defined?
loadTsconfigJsonForFile() is defined in packages/vite/src/node/plugins/esbuild.ts at line 543.
What does loadTsconfigJsonForFile() call?
loadTsconfigJsonForFile() calls 1 function(s): getTSConfckCache.
What calls loadTsconfigJsonForFile()?
loadTsconfigJsonForFile() is called by 2 function(s): transformWithEsbuild, transformWithOxc.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free