MCPcopy Create free account
hub / github.com/rolldown/rolldown / HMREventHandler

Function HMREventHandler

examples/hmr-raw/src/HotModuleReloadSetup.js:40–44  ·  view source on GitHub ↗
(newModule)

Source from the content-addressed store, hash-verified

38export default HotModuleReloadSetup;
39
40export function HMREventHandler(newModule) {
41 console.log('HMR event handler called', newModule);
42 const event = new CustomEvent('hot-module-reload', { detail: { newModule } });
43 document.body.dispatchEvent(event);
44}

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…