Home / Function/ data() — vite Function Reference

data() — vite Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  48ab134c_799b_1ae2_f804_0cad058e3551["data()"]
  18db4f26_79f1_5b7d_b291_4feeaf95538f["hmr.ts"]
  48ab134c_799b_1ae2_f804_0cad058e3551 -->|defined in| 18db4f26_79f1_5b7d_b291_4feeaf95538f
  style 48ab134c_799b_1ae2_f804_0cad058e3551 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/hmr.ts lines 81–84

export type HotChannelListener<T extends string = string> = (
  data: InferCustomEventPayload<T>,
  client: HotChannelClient,
) => void

Domain

Subdomains

Frequently Asked Questions

What does data() do?
data() is a function in the vite codebase, defined in packages/vite/src/node/server/hmr.ts.
Where is data() defined?
data() is defined in packages/vite/src/node/server/hmr.ts at line 81.

Analyze Your Own Codebase

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

Try Supermodel Free