feat: keep dev server alive during HMR updates
This commit is contained in:
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user