Skip to main content

Module incremental

Module incremental 

Source
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§

BuildInfo
Build information persisted between compilations
BuildInfoBuilder
Builder for creating build info incrementally
BuildInfoOptions
Compiler options that affect build caching
CachedDiagnostic
Cached diagnostic information for incremental builds
CachedRelatedInformation
Cached related information for diagnostics
ChangeTracker
Tracks changes between builds
EmitSignature
Emit output signature for caching
FileInfo
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