Skip to main content

Module graph_cache

Module graph_cache 

Source
Expand description

Persisted graph-cache identity contracts and on-disk store.

The manifest types here define the invalidation surface a persisted graph cache must satisfy before a cached graph can be trusted. Exact manifest hits can reuse a previously-built ModuleGraph; stable-key resolver hits can reuse resolver output and rebuild the graph with current FileIds.

Structs§

CachedImportInfo
Cache-friendly mirror of ImportInfo.
CachedReExportInfo
Cache-friendly mirror of ReExportInfo.
CachedResolvedImport
Cached import edge that can be restored without re-running resolution.
CachedResolvedModule
Cached resolver output for one module.
CachedResolvedReExport
Cached re-export edge that can be restored without re-running resolution.
GraphCacheFile
Source freshness for one file in a graph-cache manifest.
GraphCacheManifest
Manifest inputs required to trust a persisted graph cache entry.
GraphCacheMode
Option dimensions that affect graph construction.
GraphCacheStore
On-disk graph cache entry: a manifest plus the graph it validates.

Enums§

CachedResolveResult
Cached form of a resolved target.

Constants§

GRAPH_CACHE_VERSION
Persisted graph cache schema version.

Functions§

cache_resolved_modules
Convert resolved modules into the compact graph-cache resolver payload.
restore_resolved_modules
Restore resolved modules from cached resolver payloads and current parsed modules.