Home / Function/ acceptExports() — vite Function Reference

acceptExports() — vite Function Reference

Architecture documentation for the acceptExports() function in hmr.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  3d354a6c_d47c_7e0f_a3c9_c335e4eb5721["acceptExports()"]
  d86a8333_3c9a_922b_57b2_926575326289["HMRContext"]
  3d354a6c_d47c_7e0f_a3c9_c335e4eb5721 -->|defined in| d86a8333_3c9a_922b_57b2_926575326289
  73d5c6b6_4669_9083_4698_693c1d9a8117["acceptDeps()"]
  3d354a6c_d47c_7e0f_a3c9_c335e4eb5721 -->|calls| 73d5c6b6_4669_9083_4698_693c1d9a8117
  style 3d354a6c_d47c_7e0f_a3c9_c335e4eb5721 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/shared/hmr.ts lines 80–85

  acceptExports(
    _: string | readonly string[],
    callback?: (data: any) => void,
  ): void {
    this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod))
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does acceptExports() do?
acceptExports() is a function in the vite codebase, defined in packages/vite/src/shared/hmr.ts.
Where is acceptExports() defined?
acceptExports() is defined in packages/vite/src/shared/hmr.ts at line 80.
What does acceptExports() call?
acceptExports() calls 1 function(s): acceptDeps.

Analyze Your Own Codebase

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

Try Supermodel Free