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

Function callback

playground/vitestSetup.ts:343–347  ·  view source on GitHub ↗
(event: RolldownWatcherEvent)

Source from the content-addressed store, hash-verified

341): Promise<void> {
342 let resolveFn: undefined | (() => void)
343 const callback = (event: RolldownWatcherEvent): void => {
344 if (event.code === 'END') {
345 resolveFn?.()
346 }
347 }
348 watcher.on('event', callback)
349 await new Promise<void>((resolve) => {
350 resolveFn = resolve

Callers 7

editFileFunction · 0.85
acceptMethod · 0.85
acceptExportsMethod · 0.85
editFileFunction · 0.85
createResolveIdHandlerFunction · 0.85
untilBrowserLogAfterFunction · 0.85
untilConsoleLogAfterFunction · 0.85

Calls

no outgoing calls

Tested by 2

editFileFunction · 0.68
untilConsoleLogAfterFunction · 0.68