MCPcopy
hub / github.com/vitejs/vite / configureServer

Function configureServer

playground/hmr/vite.config.ts:47–54  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

45 }
46 },
47 configureServer(server) {
48 server.environments.client.hot.on(
49 'custom:remote-add',
50 ({ a, b }, client) => {
51 client.send('custom:remote-add-result', { result: a + b })
52 },
53 )
54 },
55 },
56 virtualPlugin(),
57 transformCountPlugin(),

Callers

nothing calls this directly

Calls 6

nextFunction · 0.85
useMethod · 0.80
onMethod · 0.65
sendMethod · 0.65
reloadModuleMethod · 0.65
getModuleByIdMethod · 0.45

Tested by

no test coverage detected