Home / Function/ notifyRebuildComplete() — vite Function Reference

notifyRebuildComplete() — vite Function Reference

Architecture documentation for the notifyRebuildComplete() function in vitestSetup.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  85a2e1c1_0cd4_4b7b_8498_e3c0ddfe4db8["notifyRebuildComplete()"]
  804dc5f9_3eef_472e_8575_1233b4358f17["vitestSetup.ts"]
  85a2e1c1_0cd4_4b7b_8498_e3c0ddfe4db8 -->|defined in| 804dc5f9_3eef_472e_8575_1233b4358f17
  434087ce_6cf5_5cbc_f3dc_7499162ee37b["startDefaultServe()"]
  434087ce_6cf5_5cbc_f3dc_7499162ee37b -->|calls| 85a2e1c1_0cd4_4b7b_8498_e3c0ddfe4db8
  style 85a2e1c1_0cd4_4b7b_8498_e3c0ddfe4db8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/vitestSetup.ts lines 340–355

export async function notifyRebuildComplete(
  watcher: RolldownWatcher,
): Promise<void> {
  let resolveFn: undefined | (() => void)
  const callback = (event: RolldownWatcherEvent): void => {
    if (event.code === 'END') {
      resolveFn?.()
    }
  }
  watcher.on('event', callback)
  await new Promise<void>((resolve) => {
    resolveFn = resolve
  })

  watcher.off('event', callback)
}

Domain

Subdomains

Frequently Asked Questions

What does notifyRebuildComplete() do?
notifyRebuildComplete() is a function in the vite codebase, defined in playground/vitestSetup.ts.
Where is notifyRebuildComplete() defined?
notifyRebuildComplete() is defined in playground/vitestSetup.ts at line 340.
What calls notifyRebuildComplete()?
notifyRebuildComplete() is called by 1 function(s): startDefaultServe.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free