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

Function isDevServer

packages/vite/src/node/utils.ts:1725–1729  ·  view source on GitHub ↗
(
  server: ViteDevServer | PreviewServer,
)

Source from the content-addressed store, hash-verified

1723}
1724
1725export function isDevServer(
1726 server: ViteDevServer | PreviewServer,
1727): server is ViteDevServer {
1728 return 'pluginContainer' in server
1729}
1730
1731export function createSerialPromiseQueue<T>(): {
1732 run(f: () => Promise<T>): Promise<T>

Callers 2

bindCLIShortcutsFunction · 0.90
indexHtmlMiddlewareFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected