Skip to content

Commit eb1a701

Browse files
authored
docs: clarify tsconfig resolution behavior (#2261)
1 parent 95ee940 commit eb1a701

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guide/features.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export type { T }
5353

5454
### TypeScript コンパイラーオプション
5555

56+
Vite は `tsconfig.json` のいくつかのオプションを尊重し、対応する esbuild のオプションを設定します。各ファイルに対して、Vite は最も近い親ディレクトリーにある `tsconfig.json` を使用します。その `tsconfig.json`[`references`](https://www.typescriptlang.org/tsconfig/#references) フィールドが含まれている場合、Vite は [`include`](https://www.typescriptlang.org/tsconfig/#include)[`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) フィールドを満たす参照された設定ファイルを使用します。
57+
58+
オプションが Vite の設定と `tsconfig.json` の両方に設定されている場合、Vite の設定の値が優先されます。
59+
5660
`tsconfig.json``compilerOptions` にあるいくつかの設定フィールドには、特別な注意が必要です。
5761

5862
#### `isolatedModules`

0 commit comments

Comments
 (0)