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

Function cleanUrl

packages/vite/src/client/client.ts:125–129  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

123}
124
125function cleanUrl(pathname: string): string {
126 const url = new URL(pathname, 'http://vite.dev')
127 url.searchParams.delete('direct')
128 return url.pathname + url.search
129}
130
131let isFirstUpdate = true
132const outdatedLinkTags = new WeakSet<HTMLLinkElement>()

Callers 1

handleMessageFunction · 0.70

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected