MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / shouldReloadForPath

Function shouldReloadForPath

packages/node/src/dev/hotStateReload.ts:435–442  ·  view source on GitHub ↗
(absPath: string)

Source from the content-addressed store, hash-verified

433 }
434
435 function shouldReloadForPath(absPath: string): boolean {
436 if (shouldTrackPath(absPath)) return true;
437 if (isWithinOrEqual(moduleRoot, absPath)) return true;
438 for (const target of watchTargets) {
439 if (isWithinOrEqual(target, absPath)) return true;
440 }
441 return false;
442 }
443
444 function onWatchEvent(
445 watchDir: string,

Callers 1

onWatchEventFunction · 0.85

Calls 2

shouldTrackPathFunction · 0.85
isWithinOrEqualFunction · 0.85

Tested by

no test coverage detected