Expand description
Incremental Compilation Support
This module implements TypeScript’s incremental compilation feature, which enables:
- Faster rebuilds by caching compilation results
- .tsbuildinfo file persistence for cross-session caching
- Smart dependency tracking for minimal recompilation
§Build Info Format
The .tsbuildinfo file stores:
- Version information for cache invalidation
- File hashes for change detection
- Dependency graphs between files
- Emitted file signatures for output caching
Structs§
- Build
Info - Build information persisted between compilations
- Build
Info Builder - Builder for creating build info incrementally
- Build
Info Options - Compiler options that affect build caching
- Cached
Diagnostic - Cached diagnostic information for incremental builds
- Cached
Related Information - Cached related information for diagnostics
- Change
Tracker - Tracks changes between builds
- Emit
Signature - Emit output signature for caching
- File
Info - Information about a single compiled file
Constants§
- BUILD_
INFO_ VERSION - Version of the build info format
Functions§
- compute_
export_ signature - Compute a signature for a file’s exports (for dependency tracking)
- compute_
file_ version - Compute a version string for a file (content hash)
- default_
build_ info_ path - Determine the default .tsbuildinfo path based on configuration