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

Function normalizeHmrUrl

packages/vite/src/node/server/hmr.ts:1117–1122  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1115}
1116
1117export function normalizeHmrUrl(url: string): string {
1118 if (url[0] !== '.' && url[0] !== '/') {
1119 url = wrapId(url)
1120 }
1121 return url
1122}
1123
1124function error(pos: number) {
1125 const err = new Error(

Callers 2

transformFunction · 0.90
updateModulesFunction · 0.85

Calls 1

wrapIdFunction · 0.90

Tested by

no test coverage detected