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

Function handler

packages/vite/src/node/plugins/asset.ts:175–185  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

173 ],
174 },
175 handler(id) {
176 if (!config.assetsInclude(cleanUrl(id)) && !urlRE.test(id)) {
177 return
178 }
179 // imports to absolute urls pointing to files in /public
180 // will fail to resolve in the main resolver. handle them here.
181 const publicFile = checkPublicFile(id, config)
182 if (publicFile) {
183 return id
184 }
185 },
186 },
187
188 load: {

Callers

nothing calls this directly

Calls 9

cleanUrlFunction · 0.90
checkPublicFileFunction · 0.90
removeUrlQueryFunction · 0.90
injectQueryFunction · 0.90
encodeURIPathFunction · 0.90
fileToUrlFunction · 0.70
addWatchFileMethod · 0.45
getModuleByIdMethod · 0.45
getModuleInfoMethod · 0.45

Tested by

no test coverage detected