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

Function preServe

playground/ssr-wasm/__tests__/serve.ts:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9export const port = ports['ssr-wasm']
10
11export async function preServe() {
12 if (isBuild) {
13 await build({ root: rootDir, logLevel: 'silent' })
14 }
15}
16
17export async function serve(): Promise<{ close(): Promise<void> }> {
18 await kill(port)

Callers 1

vitestSetup.tsFile · 0.85

Calls 1

buildFunction · 0.90

Tested by

no test coverage detected