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

Function transformRequest

packages/vite/src/node/server/index.ts:667–671  ·  view source on GitHub ↗
(url, options)

Source from the content-addressed store, hash-verified

665 })
666 },
667 transformRequest(url, options) {
668 warnFutureDeprecation(config, 'removeServerTransformRequest')
669 const environment = server.environments[options?.ssr ? 'ssr' : 'client']
670 return environment.transformRequest(url)
671 },
672 warmupRequest(url, options) {
673 warnFutureDeprecation(config, 'removeServerWarmupRequest')
674 const environment = server.environments[options?.ssr ? 'ssr' : 'client']

Callers

nothing calls this directly

Calls 2

warnFutureDeprecationFunction · 0.90
transformRequestMethod · 0.65

Tested by

no test coverage detected