MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / handleHotUpdate

Function handleHotUpdate

packages/core/vite-plugin/src/index.ts:228–237  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

226 return loadVirtualSource();
227 },
228 handleHotUpdate(ctx) {
229 const configPath = resolveConfigPath();
230 const jsoncPath = resolveJsoncPath();
231 const isWatched =
232 (configPath && ctx.file === configPath) || (jsoncPath && ctx.file === jsoncPath);
233 if (!isWatched) return undefined;
234 cachedSource = null;
235 const mod = ctx.server.moduleGraph.getModuleById(RESOLVED_ID);
236 return mod ? [mod] : undefined;
237 },
238 };
239}
240

Callers

nothing calls this directly

Calls 2

resolveConfigPathFunction · 0.85
resolveJsoncPathFunction · 0.85

Tested by

no test coverage detected