You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,6 +250,16 @@ setting "generateTrace" compiler option. This is an instruction from [microsoft/
250
250
This plugin delegates type checking to TypeScript, so overall performance is mostly determined by `tsc` itself.
251
251
252
252
If you need faster type checks, start by optimizing your TypeScript setup using the [official TypeScript performance guide](https://github.com/microsoft/TypeScript/wiki/Performance).
253
+
254
+
For example, properly configuring the `include` and `exclude` scopes in `tsconfig.json` can significantly reduce unnecessary type checking and improve TypeScript performance:
255
+
256
+
```json title="tsconfig.json"
257
+
{
258
+
"include": ["src"],
259
+
"exclude": ["**/node_modules", "**/.*/"]
260
+
}
261
+
```
262
+
253
263
## Enabling incremental mode
254
264
255
265
TypeScript's "incremental" mode speeds up initial cold-start typechecks keeping an on-disk cache.
0 commit comments