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

Function cleanUrl

packages/vite/src/shared/utils.ts:32–34  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

30
31const postfixRE = /[?#].*$/
32export function cleanUrl(url: string): string {
33 return url.replace(postfixRE, '')
34}
35
36export function splitFileAndPostfix(path: string): {
37 file: string

Callers 15

constructorMethod · 0.90
directRequestMethod · 0.90
fsPathFromUrlFunction · 0.90
isJSRequestFunction · 0.90
encodeURIPathFunction · 0.90
partialEncodeURIPathFunction · 0.90
checkPublicFileFunction · 0.90
_getCombinedSourcemapMethod · 0.90
getCombinedSourcemapMethod · 0.90
injectSourcesContentFunction · 0.90
loadAndTransformFunction · 0.90
_ensureEntryFromUrlMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected