MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / reloadClient

Function reloadClient

test/client/index.test.js:197–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 // Re-evaluate client-src/index.js fresh after mutating __resourceQuery so
196 // top-level option parsing runs again.
197 async function reloadClient() {
198 overlay.send.mockReset();
199 socket.mockReset();
200 const indexUrl = import.meta.resolve("../../client-src/index.js");
201 await import(`${indexUrl}?t=${Date.now()}-${Math.random()}`);
202 [[, onSocketMessage]] = socket.mock.calls;
203 }
204
205 // Pass JSON config with warnings disabled
206 globalThis.__resourceQuery = `?overlay=${encodeURIComponent(

Callers 1

index.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…