Skip to content

TypeScript API / @laikacms/vite-plugin / HmrServer

Interface: HmrServer ​

The subset of a Vite ViteDevServer this channel needs. A real dev server is structurally assignable, so callers pass their ViteDevServer directly.

Properties ​

moduleGraph ​

ts
moduleGraph: HmrModuleGraph;

ws ​

ts
ws: object;

send() ​

ts
send(payload): void;
Parameters ​
ParameterType
payloadHmrFullReloadPayload
Returns ​

void

Released under the MIT License.