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

Function createDevServer

packages/vite/src/node/ssr/__tests__/ssrLoadModule.spec.ts:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const root = fileURLToPath(new URL('./', import.meta.url))
11
12async function createDevServer() {
13 const server = await createServer({
14 configFile: false,
15 root,
16 logLevel: 'silent',
17 optimizeDeps: {
18 noDiscovery: true,
19 },
20 })
21 await server.environments.ssr.pluginContainer.buildStart({})
22 return server
23}
24
25test('ssrLoad', async () => {
26 expect.assertions(1)

Callers 1

Calls 2

createServerFunction · 0.90
buildStartMethod · 0.45

Tested by

no test coverage detected