hmrPayload.d.ts — vite Source File
Architecture documentation for hmrPayload.d.ts, a typescript file in the vite codebase.
Entity Profile
Relationship Graph
Source Code
/** @deprecated use HotPayload */
export type HMRPayload = HotPayload
export type HotPayload =
| ConnectedPayload
| PingPayload
| UpdatePayload
| FullReloadPayload
| CustomPayload
| ErrorPayload
| PrunePayload
export interface ConnectedPayload {
type: 'connected'
}
export interface PingPayload {
type: 'ping'
}
export interface UpdatePayload {
type: 'update'
updates: Update[]
}
export interface Update {
type: 'js-update' | 'css-update'
/**
* URL of HMR patch chunk
*
* This only exists when full-bundle mode is enabled.
*/
url?: string
path: string
acceptedPath: string
timestamp: number
/** @internal */
explicitImportRequired?: boolean
/** @internal */
isWithinCircularImport?: boolean
/** @internal */
firstInvalidatedBy?: string
/** @internal */
invalidates?: string[]
}
export interface PrunePayload {
type: 'prune'
paths: string[]
}
export interface FullReloadPayload {
type: 'full-reload'
path?: string
/** @internal */
triggeredBy?: string
}
export interface CustomPayload {
type: 'custom'
event: string
data?: any
}
export interface ErrorPayload {
type: 'error'
err: {
[name: string]: any
message: string
stack: string
id?: string
frame?: string
plugin?: string
pluginCode?: string
loc?: {
file?: string
line: number
column: number
}
}
}
Types
Source
Frequently Asked Questions
What does hmrPayload.d.ts do?
hmrPayload.d.ts is a source file in the vite codebase, written in typescript.
Where is hmrPayload.d.ts in the architecture?
hmrPayload.d.ts is located at packages/vite/types/hmrPayload.d.ts (directory: packages/vite/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free