Skip to content

Class: TsconfigCache

Defined in: binding.d.cts:1751

Cache for tsconfig resolution to avoid redundant file system operations.

The cache stores resolved tsconfig configurations keyed by their file paths. When transforming multiple files in the same project, tsconfig lookups are deduplicated, improving performance.

Constructors

Constructor

  • Type: () => TsconfigCache
  • Experimental
Defined in: binding.d.cts:1753

Create a new transform cache with auto tsconfig discovery enabled.

Returns

TsconfigCache

Methods

clear()

  • Type: () => void
  • Experimental
Defined in: binding.d.cts:1759

Clear the cache.

Call this when tsconfig files have changed to ensure fresh resolution.

Returns

void


size()

  • Type: () => number
  • Experimental
Defined in: binding.d.cts:1761

Get the number of cached entries.

Returns

number