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

Function normalizePath

packages/vite/src/node/utils.ts:232–234  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

230const VOLUME_RE = /^[A-Z]:/i
231
232export function normalizePath(id: string): string {
233 return path.posix.normalize(isWindows ? slash(id) : id)
234}
235
236export function fsPathFromId(id: string): string {
237 const fsPath = normalizePath(

Callers 15

toAssetPathFromHtmlFunction · 0.90
resolveEmptyOutDirFunction · 0.90
config.tsFile · 0.90
resolveConfigFunction · 0.90
loadConfigFromFileFunction · 0.90
invalidatePackageDataFunction · 0.90
loadPackageDataFunction · 0.90
getEnvFilesForModeFunction · 0.90
checkPublicFileFunction · 0.90
previewFunction · 0.90
generateBundleFunction · 0.90

Calls 1

slashFunction · 0.90

Tested by 5

resolveFileFunction · 0.72
transformClassCodeFunction · 0.72
runFunction · 0.72
testFunction · 0.72