MCPcopy Create free account
hub / github.com/mswjs/interceptors / getWebpackHttpServer

Function getWebpackHttpServer

test/webpackHttpServer.ts:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8globalThis.webpackServerPromise = null
9
10export function getWebpackHttpServer(): Promise<WebpackHttpServer> {
11 if (global.webpackServerPromise) {
12 return global.webpackServerPromise
13 }
14
15 globalThis.webpackServerPromise = startWebpackServer()
16
17 return globalThis.webpackServerPromise
18}
19
20async function startWebpackServer(): Promise<WebpackHttpServer> {
21 const server = new WebpackHttpServer({

Callers 1

webpackServerFunction · 0.90

Calls 1

startWebpackServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…