TypeScript · Compiler Diagnostics

explainFiles

Print files read during the compilation including why it was included.

Syntax
"explainFiles": true

Example

Example
{
  "compilerOptions": {
    "explainFiles": true
  }
}

More in this group

diagnostics extendedDiagnostics generateCpuProfile generateTrace listEmittedFiles listFiles noCheck traceResolution

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