MCPcopy Create free account
hub / github.com/Borrus-sudo/tinypages / reload

Function reload

packages/vite/src/node/plugins/plugin-utils.ts:23–33  ·  view source on GitHub ↗
(file: string, server: ViteDevServer, logger: Logger)

Source from the content-addressed store, hash-verified

21}
22
23export function reload(file: string, server: ViteDevServer, logger: Logger) {
24 logger.info(kleur.yellow(`Page reload: ${file}`), {
25 timestamp: true,
26 clear: true,
27 });
28 server.moduleGraph.invalidateAll();
29 server.ws.send({
30 type: "custom",
31 event: "reload:page",
32 });
33}
34
35export { hash } from "ohash";

Callers 2

eventHandlerFunction · 0.90
handleHotUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected