encodeURIPath() — vite Function Reference
Architecture documentation for the encodeURIPath() function in utils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763["encodeURIPath()"] 031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"] 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2 edf78a01_8215_eb46_3896_3db717c46747["renderAssetUrlInJS()"] edf78a01_8215_eb46_3896_3db717c46747 -->|calls| 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 2b04bf20_6455_3250_24f8_b60c71116be3["assetPlugin()"] 2b04bf20_6455_3250_24f8_b60c71116be3 -->|calls| 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 cd131d16_e223_ab79_1b7c_8ea449ae51a2["cssPostPlugin()"] cd131d16_e223_ab79_1b7c_8ea449ae51a2 -->|calls| 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"] 39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 1a156a4f_5015_f60f_3a54_6eb2168861ca["webWorkerPlugin()"] 1a156a4f_5015_f60f_3a54_6eb2168861ca -->|calls| 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 10b9dea8_362c_1af2_93be_afa4dd9aed9e["cleanUrl()"] 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 -->|calls| 10b9dea8_362c_1af2_93be_afa4dd9aed9e style 41d0f7a0_ed36_9f0f_d0d6_f403e4f50763 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/utils.ts lines 1672–1677
export function encodeURIPath(uri: string): string {
if (uri.startsWith('data:')) return uri
const filePath = cleanUrl(uri)
const postfix = filePath !== uri ? uri.slice(filePath.length) : ''
return encodeURI(filePath) + postfix
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does encodeURIPath() do?
encodeURIPath() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is encodeURIPath() defined?
encodeURIPath() is defined in packages/vite/src/node/utils.ts at line 1672.
What does encodeURIPath() call?
encodeURIPath() calls 1 function(s): cleanUrl.
What calls encodeURIPath()?
encodeURIPath() is called by 5 function(s): assetPlugin, buildHtmlPlugin, cssPostPlugin, renderAssetUrlInJS, webWorkerPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free