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

Function configureServer

playground/hmr-ssr/vite.config.ts:26–33  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

24 }
25 },
26 configureServer(server) {
27 server.environments.ssr.hot.on(
28 'custom:remote-add',
29 ({ a, b }, client) => {
30 client.send('custom:remote-add-result', { result: a + b })
31 },
32 )
33 },
34 },
35 virtualPlugin(),
36 transformCountPlugin(),

Callers

nothing calls this directly

Calls 4

onMethod · 0.65
sendMethod · 0.65
reloadModuleMethod · 0.65
getModuleByUrlMethod · 0.45

Tested by

no test coverage detected