Home / Function/ updated() — vite Function Reference

updated() — vite Function Reference

Architecture documentation for the updated() function in hmr-ssr.spec.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  ee22fc40_b548_4290_428b_18e16c9d7b13["updated()"]
  2f2e510b_d491_14bf_c7ee_0c390a8b3218["hmr-ssr.spec.ts"]
  ee22fc40_b548_4290_428b_18e16c9d7b13 -->|defined in| 2f2e510b_d491_14bf_c7ee_0c390a8b3218
  style ee22fc40_b548_4290_428b_18e16c9d7b13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/hmr-ssr/__tests__/hmr-ssr.spec.ts lines 46–51

const updated = (file: string, via?: string) => {
  if (via) {
    return `[vite] hot updated: ${file} via ${via}`
  }
  return `[vite] hot updated: ${file}`
}

Domain

Subdomains

Frequently Asked Questions

What does updated() do?
updated() is a function in the vite codebase, defined in playground/hmr-ssr/__tests__/hmr-ssr.spec.ts.
Where is updated() defined?
updated() is defined in playground/hmr-ssr/__tests__/hmr-ssr.spec.ts at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free