escapeToLinuxLikePath() — vite Function Reference
Architecture documentation for the escapeToLinuxLikePath() function in utils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD b301fa12_baef_9bba_0243_802d85a06f05["escapeToLinuxLikePath()"] 031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"] b301fa12_baef_9bba_0243_802d85a06f05 -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2 cb1210e8_03e9_2eec_ef04_aa15d44d4c08["combineSourcemaps()"] cb1210e8_03e9_2eec_ef04_aa15d44d4c08 -->|calls| b301fa12_baef_9bba_0243_802d85a06f05 style b301fa12_baef_9bba_0243_802d85a06f05 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/utils.ts lines 824–832
function escapeToLinuxLikePath(path: string) {
if (windowsDriveRE.test(path)) {
return path.replace(replaceWindowsDriveRE, '/windows/$1/')
}
if (linuxAbsolutePathRE.test(path)) {
return `/linux${path}`
}
return path
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does escapeToLinuxLikePath() do?
escapeToLinuxLikePath() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is escapeToLinuxLikePath() defined?
escapeToLinuxLikePath() is defined in packages/vite/src/node/utils.ts at line 824.
What calls escapeToLinuxLikePath()?
escapeToLinuxLikePath() is called by 1 function(s): combineSourcemaps.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free