TypeScript · Watch and Build Modes

assumeChangesOnlyAffectDirectDependencies

Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it.

Syntax
"assumeChangesOnlyAffectDirectDependencies": true

Example

Example
{
  "compilerOptions": {
    "assumeChangesOnlyAffectDirectDependencies": true
  }
}

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course