Skip to content

Commit a1862ac

Browse files
authored
docs: clarify tsconfig resolution behavior (#1299) (#1550)
Co-authored-by: Rush Ali <s0aPii.ra@googlemail.com> closes #1299 #1550
1 parent 67d4285 commit a1862ac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/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 Compiler-Optionen
5555

56+
Vite berücksichtigt einige der Optionen in der `tsconfig.json` und setzt die entsprechenden esbuild-Optionen. Für jede Datei verwendet Vite die `tsconfig.json` im nächsten Elternverzeichnis. Falls die `tsconfig.json` ein [`references`](https://www.typescriptlang.org/tsconfig/#references)-Feld enthält, verwendet Vite die referenzierte Konfigurationsdatei, die den Feldern [`include`](https://www.typescriptlang.org/tsconfig/#include) und [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) entspricht.
57+
58+
Wenn die Optionen in der Vite-Konfiguration und der `tsconfig.json` gesetzt sind, hat der Wert in der Vite-Konfiguration Vorrang.
59+
5660
Einige Konfigurationsfelder unter `compilerOptions` in `tsconfig.json` erfordern besondere Aufmerksamkeit.
5761

5862
#### `isolatedModules`

0 commit comments

Comments
 (0)