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

Method watchChange

packages/vite/src/node/server/pluginContainer.ts:1256–1263  ·  view source on GitHub ↗
(
    id: string,
    change: { event: 'create' | 'update' | 'delete' },
  )

Source from the content-addressed store, hash-verified

1254 }
1255
1256 async watchChange(
1257 id: string,
1258 change: { event: 'create' | 'update' | 'delete' },
1259 ): Promise<void> {
1260 return (
1261 this.environments.client as DevEnvironment
1262 ).pluginContainer.watchChange(id, change)
1263 }
1264
1265 async resolveId(
1266 rawId: string,

Callers 2

onFileAddUnlinkFunction · 0.45
onFileChangeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected