MCPcopy
hub / github.com/vitejs/vite / clear

Method clear

packages/vite/src/module-runner/evaluatedModules.ts:125–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 public clear(): void {
126 this.idToModuleMap.clear()
127 this.fileToModulesMap.clear()
128 this.urlToIdModuleMap.clear()
129 }
130}
131
132// unique id that is not available as "$bare_import" like "test"

Callers 3

invalidateModuleMethod · 0.45
clearCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected