MCPcopy
hub / github.com/nuxt/nuxt / markInvalidate

Function markInvalidate

packages/vite/src/plugins/vite-node.ts:170–175  ·  view source on GitHub ↗
(mod: ModuleNode | EnvironmentModuleNode)

Source from the content-addressed store, hash-verified

168 const invalidates = new Set<string>()
169
170 function markInvalidate (mod: ModuleNode | EnvironmentModuleNode) {
171 if (!mod.id) { return }
172 if (invalidates.has(mod.id)) { return }
173 invalidates.add(mod.id)
174 markInvalidates(mod.importers)
175 }
176
177 function markInvalidates (mods?: (ModuleNode | EnvironmentModuleNode)[] | Set<ModuleNode | EnvironmentModuleNode>) {
178 if (!mods) { return }

Callers 3

markInvalidatesFunction · 0.85
configureServerFunction · 0.85

Calls 1

markInvalidatesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…