Skip to content

Class: TsconfigCache

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.

Extends

  • TsconfigCache

Constructors

Constructor

  • Type: () => TsconfigCache
  • Experimental

Returns

TsconfigCache

Overrides

OriginalTsconfigCache.constructor

Methods

clear()

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

Clear the cache.

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

Returns

void

Inherited from

OriginalTsconfigCache.clear


size()

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

Get the number of cached entries.

Returns

number

Inherited from

OriginalTsconfigCache.size