Home / Type/ ModuleRunnerTransport Type — vite Architecture

ModuleRunnerTransport Type — vite Architecture

Architecture documentation for the ModuleRunnerTransport type/interface in moduleRunnerTransport.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  a247e169_2684_25ae_f8ce_bdc392ce8295["ModuleRunnerTransport"]
  a469d907_868c_e1c2_3f7a_7aaf42cc6a7a["moduleRunnerTransport.ts"]
  a247e169_2684_25ae_f8ce_bdc392ce8295 -->|defined in| a469d907_868c_e1c2_3f7a_7aaf42cc6a7a
  style a247e169_2684_25ae_f8ce_bdc392ce8295 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/shared/moduleRunnerTransport.ts lines 18–24

export interface ModuleRunnerTransport {
  connect?(handlers: ModuleRunnerTransportHandlers): Promise<void> | void
  disconnect?(): Promise<void> | void
  send?(data: HotPayload): Promise<void> | void
  invoke?(data: HotPayload): Promise<{ result: any } | { error: any }>
  timeout?: number
}

Frequently Asked Questions

What is the ModuleRunnerTransport type?
ModuleRunnerTransport is a type/interface in the vite codebase, defined in packages/vite/src/shared/moduleRunnerTransport.ts.
Where is ModuleRunnerTransport defined?
ModuleRunnerTransport is defined in packages/vite/src/shared/moduleRunnerTransport.ts at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free