MCPcopy
hub / github.com/webpack/webpack / handler

Function handler

hot/dev-server.js:71–77  ·  hot/dev-server.js::handler
(event)

Source from the content-addressed store, hash-verified

69 * @param {CustomEvent<{ currentHash: string }>} event event or hash
70 */
71 var handler = function (event) {
72 lastHash = typeof event === class="st">"string" ? event : event.detail.currentHash;
73 if (!upToDate() && module.hot.status() === class="st">"idle") {
74 log(class="st">"info", class="st">"[HMR] Checking for updates on the server...");
75 check();
76 }
77 };
78
79 if (typeof EventTarget !== class="st">"undefined" && hotEmitter instanceof EventTarget) {
80 hotEmitter.addEventListener(

Callers 14

applyMethod · 0.50
watchMethod · 0.50
_applyOnMultiCompilerMethod · 0.50
updateMethod · 0.50
callMethod · 0.50
doneMethod · 0.50
resultMethod · 0.50
errorMethod · 0.50
tapMethod · 0.50
watchMethod · 0.50
fnFunction · 0.50

Calls 4

upToDateFunction · 0.70
checkFunction · 0.70
statusMethod · 0.65
logFunction · 0.50

Tested by

no test coverage detected