Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export type { T }

### TypeScript Compiler Options

Vite respects some of the options in `tsconfig.json` and sets the corresponding esbuild options. The `tsconfig.json` in the closest parent directory for each file is used. If a [`references`](https://www.typescriptlang.org/tsconfig/#references) field is present in the `tsconfig.json`, those config files are also used. If the config file has [`include`](https://www.typescriptlang.org/tsconfig/#include) or [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) fields, they are respected.
Comment thread
bluwy marked this conversation as resolved.
Outdated

When the options are set in both the normal config and the `tsconfig.json`, the value in the config file takes precedence.
Comment thread
sapphi-red marked this conversation as resolved.
Outdated

Some configuration fields under `compilerOptions` in `tsconfig.json` require special attention.

#### `isolatedModules`
Expand Down