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

Method warmupRequest

packages/vite/src/node/server/index.ts:367–367  ·  view source on GitHub ↗

* Same as `transformRequest` but only warm up the URLs so the next request * will already be cached. The function will never throw as it handles and * reports errors internally.

(url: string, options?: TransformOptions)

Source from the content-addressed store, hash-verified

365 * reports errors internally.
366 */
367 warmupRequest(url: string, options?: TransformOptions): Promise<void>
368 /**
369 * Apply vite built-in HTML transforms and any plugin HTML transforms.
370 */

Callers 5

warmupRequestFunction · 0.65
warmupFileFunction · 0.65
preTransformRequestFunction · 0.65
transformFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected