diff --git a/docs/guide/api-hmr.md b/docs/guide/api-hmr.md index 0c0bf852f116ad..3e8ef3eb6708a2 100644 --- a/docs/guide/api-hmr.md +++ b/docs/guide/api-hmr.md @@ -124,7 +124,7 @@ The following HMR events are dispatched by Vite automatically: Custom HMR events can also be sent from plugins. See [handleHotUpdate](./api-plugin#handlehotupdate) for more details. -## `hot.send(event, payload)` +## `hot.send({ event, data })` Send custom events back to Vite's dev server.