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

Function removeImportQuery

packages/vite/src/node/utils.ts:322–324  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

320 InternalPrefixRE.test(url)
321
322export function removeImportQuery(url: string): string {
323 return url.replace(importQueryRE, '$1').replace(trailingSeparatorRE, '')
324}
325export function removeDirectQuery(url: string): string {
326 return url.replace(directRequestRE, '$1').replace(trailingSeparatorRE, '')
327}

Callers 7

getModuleByUrlMethod · 0.90
_ensureEntryFromUrlMethod · 0.90
resolveUrlMethod · 0.90
transformMiddlewareFunction · 0.90
transformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected