feat: keep dev server alive during HMR updates

This commit is contained in:
2026-07-13 15:17:49 +05:30
parent cf4c3723c5
commit 577c38a965
62 changed files with 281 additions and 169 deletions
+2 -2
View File
@@ -410,8 +410,8 @@ export const STYLES_HREF = "/__wrnexus/styles.css";
/**
* Inline HMR client (WebSocket). Goals:
* - CSS change -> hot-swap the stylesheet, zero reload, zero flash.
* - markup/page -> after the server restarts, ask over the HMR WebSocket for
* fresh HTML and MORPH the live DOM in place.
* - markup/page -> ask over the existing HMR WebSocket for fresh HTML and
* MORPH the live DOM in place, without restarting the server.
* - island code -> same WebSocket sync path; no location.reload().
*/
export const HMR_CLIENT_JS = `