Skip to main content

Interface: HMRInvalidationMap

Defined in: packages/vite/src/types.ts:265

The graph edges that handleHotUpdate walks when a watched file changes.

Built incrementally as the plugin sees resolveId / load / transform calls. Reset on dev server restart.

Properties

configWatchers

configWatchers: Set<string>

Defined in: packages/vite/src/types.ts:276

All modules that depend on the config (for config-change fan-out).


schemaToImporters

schemaToImporters: Map<string, Set<string>>

Defined in: packages/vite/src/types.ts:270

For each schema file, the set of Vite module ids that import it.


schemaToTargets

schemaToTargets: Map<string, Set<string>>

Defined in: packages/vite/src/types.ts:267

For each schema file, the set of cache keys depending on it.


targetToImporters

targetToImporters: Map<string, Set<string>>

Defined in: packages/vite/src/types.ts:273

For each cache entry, the set of modules that import its virtual id.