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

Method clear

packages/vite/src/shared/hmr.ts:204–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 }
203
204 public clear(): void {
205 this.hotModulesMap.clear()
206 this.disposeMap.clear()
207 this.pruneMap.clear()
208 this.dataMap.clear()
209 this.customListenersMap.clear()
210 this.ctxToListenersMap.clear()
211 }
212
213 // After an HMR update, some modules are no longer imported on the page
214 // but they may have left behind side effects that need to be cleaned up

Callers 1

disconnectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected