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

Method reloadModule

packages/vite/src/node/server/environment.ts:252–256  ·  view source on GitHub ↗
(module: EnvironmentModuleNode)

Source from the content-addressed store, hash-verified

250 }
251
252 async reloadModule(module: EnvironmentModuleNode): Promise<void> {
253 if (this.config.server.hmr !== false && module.file) {
254 updateModules(this, module.file, [module], monotonicDateNow())
255 }
256 }
257
258 transformRequest(url: string): Promise<TransformResult | null> {
259 return transformRequest(this, url, { skipFsCheck: this._skipFsCheck })

Callers

nothing calls this directly

Calls 2

updateModulesFunction · 0.90
monotonicDateNowFunction · 0.90

Tested by

no test coverage detected