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

Function shouldPreTransform

packages/vite/src/node/server/middlewares/indexHtml.ts:118–122  ·  packages/vite/src/node/server/middlewares/indexHtml.ts::shouldPreTransform
(url: string, config: ResolvedConfig)

Source from the content-addressed store, hash-verified

116}
117
118function shouldPreTransform(url: string, config: ResolvedConfig) {
119 return (
120 !checkPublicFile(url, config) && (isJSRequest(url) || isCSSRequest(url))
121 )
122}
123
124const wordCharRE = /\w/
125

Callers 1

replacerFunction · 0.85

Calls 3

checkPublicFileFunction · 0.90
isJSRequestFunction · 0.90
isCSSRequestFunction · 0.90

Tested by

no test coverage detected