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

Method reloadModule

packages/vite/src/node/server/index.ts:404–404  ·  view source on GitHub ↗

* Triggers HMR for a module in the module graph. You can use the `server.moduleGraph` * API to retrieve the module to be reloaded. If `hmr` is false, this is a no-op.

(module: ModuleNode)

Source from the content-addressed store, hash-verified

402 * API to retrieve the module to be reloaded. If `hmr` is false, this is a no-op.
403 */
404 reloadModule(module: ModuleNode): Promise<void>
405 /**
406 * Start the server.
407 */

Callers 2

configureServerFunction · 0.65
configureServerFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected