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

Method addWatchFile

packages/vite/src/node/server/pluginContainer.ts:861–869  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

859 }
860
861 addWatchFile(id: string): void {
862 this._container.watchFiles.add(id)
863 if (this._container.watcher)
864 ensureWatchedFile(
865 this._container.watcher,
866 id,
867 this.environment.config.root,
868 )
869 }
870
871 getWatchFiles(): string[] {
872 return [...this._container.watchFiles]

Callers 11

addWatchFileMethod · 0.45
handlerFunction · 0.45
handlerFunction · 0.45
handlerFunction · 0.45
handlerFunction · 0.45
handlerFunction · 0.45
createResolveIdHandlerFunction · 0.45
createLoadHandlerFunction · 0.45
transformFunction · 0.45
loadFunction · 0.45
transformFunction · 0.45

Calls 2

ensureWatchedFileFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected