TypeScript speed up build with incremental


TypeScript 3 introduced an incremental option that speeds up builds.

To enable it, set the flag in tsconfig.json:

{
  "compilerOptions": {
    "incremental": true
  }
}

Don’t forget to add .tsbuildinfo to .gitignore:

echo '.tsbuildinfo' >> .gitignore


Please support this site and join our Discord!