Home / Function/ invalidateAll() — vite Function Reference

invalidateAll() — vite Function Reference

Architecture documentation for the invalidateAll() function in moduleGraph.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  8cb1b522_2bee_f4c7_3c23_952c0f3b82d2["invalidateAll()"]
  cdb618b6_fede_c732_1a58_98b86b491151["EnvironmentModuleGraph"]
  8cb1b522_2bee_f4c7_3c23_952c0f3b82d2 -->|defined in| cdb618b6_fede_c732_1a58_98b86b491151
  699e7c37_64e5_966a_fd87_42a032acb6af["invalidateAll()"]
  699e7c37_64e5_966a_fd87_42a032acb6af -->|calls| 8cb1b522_2bee_f4c7_3c23_952c0f3b82d2
  9eb17063_e0f2_709b_4eff_fdea32177425["invalidateModule()"]
  8cb1b522_2bee_f4c7_3c23_952c0f3b82d2 -->|calls| 9eb17063_e0f2_709b_4eff_fdea32177425
  74ee9886_2456_3964_e90e_5fc67925229d["monotonicDateNow()"]
  8cb1b522_2bee_f4c7_3c23_952c0f3b82d2 -->|calls| 74ee9886_2456_3964_e90e_5fc67925229d
  style 8cb1b522_2bee_f4c7_3c23_952c0f3b82d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/moduleGraph.ts lines 236–242

  invalidateAll(): void {
    const timestamp = monotonicDateNow()
    const seen = new Set<EnvironmentModuleNode>()
    this.idToModuleMap.forEach((mod) => {
      this.invalidateModule(mod, seen, timestamp)
    })
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does invalidateAll() do?
invalidateAll() is a function in the vite codebase, defined in packages/vite/src/node/server/moduleGraph.ts.
Where is invalidateAll() defined?
invalidateAll() is defined in packages/vite/src/node/server/moduleGraph.ts at line 236.
What does invalidateAll() call?
invalidateAll() calls 2 function(s): invalidateModule, monotonicDateNow.
What calls invalidateAll()?
invalidateAll() is called by 1 function(s): invalidateAll.

Analyze Your Own Codebase

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

Try Supermodel Free