Skip to content
drugoi.dev
TwitterTelegramLinkedIn1on1

Speeding Up TypeScript Builds with Incremental Compilation

typescript, optimization, build-performance

The post was originally written for the Telegram channel.

I spent a couple of days asking my friends how they put together their TypeScript projects and found out that many of them do not have the incremental option enabled.

If you enable it, TypeScript will save intermediate compilation information in the .tsbuildinfo file (you can change the location/name of the file via the tsBuildInfoFile parameter) and thereby reduce compilation time.

If, suddenly, you have not used this setting before, then share the before/after results in the comments. I usually measure things like this: time tsc

💚 Nikita Bayev Paper Company
Theme by LekoArts