Skip to main content

Module cache

Module cache 

Source
Expand description

Incremental parse cache with bincode serialization.

Stores parsed module information (exports, imports, re-exports) on disk so unchanged files can skip AST parsing on subsequent runs. Uses xxh3 content hashing to detect changes.

Structs§

CacheStore
Cached module information stored on disk.
CachedDynamicImport
Cached dynamic import data.
CachedDynamicImportPattern
Cached dynamic import pattern data (template literals, import.meta.glob).
CachedExport
Cached export data for a single export declaration.
CachedImport
Cached import data for a single import declaration.
CachedMember
Cached enum or class member data.
CachedModule
Cached data for a single module.
CachedReExport
Cached re-export data.
CachedRequireCall
Cached require() call data.
CachedSuppression
Cached suppression directive.

Functions§

cached_to_module
Reconstruct a ModuleInfo from a CachedModule.
module_to_cached
Convert a ModuleInfo to a CachedModule for storage.