Home / Function/ partialEncodeURIPath() — vite Function Reference

partialEncodeURIPath() — vite Function Reference

Architecture documentation for the partialEncodeURIPath() function in utils.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  44a58113_befe_8307_2b82_9d9d5c9c0929["partialEncodeURIPath()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  44a58113_befe_8307_2b82_9d9d5c9c0929 -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  b4c7575f_1493_ac14_e5b0_c13cced58781["getRelativeUrlFromDocument()"]
  b4c7575f_1493_ac14_e5b0_c13cced58781 -->|calls| 44a58113_befe_8307_2b82_9d9d5c9c0929
  418e1c46_b686_ec39_d7f6_02d4c82f8aaf["relativeUrlMechanisms.es()"]
  418e1c46_b686_ec39_d7f6_02d4c82f8aaf -->|calls| 44a58113_befe_8307_2b82_9d9d5c9c0929
  0f6091d7_4be3_6c32_aa8f_866c6da126e2["customRelativeUrlMechanisms.worker-iife()"]
  0f6091d7_4be3_6c32_aa8f_866c6da126e2 -->|calls| 44a58113_befe_8307_2b82_9d9d5c9c0929
  39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"]
  39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| 44a58113_befe_8307_2b82_9d9d5c9c0929
  10b9dea8_362c_1af2_93be_afa4dd9aed9e["cleanUrl()"]
  44a58113_befe_8307_2b82_9d9d5c9c0929 -->|calls| 10b9dea8_362c_1af2_93be_afa4dd9aed9e
  style 44a58113_befe_8307_2b82_9d9d5c9c0929 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 1683–1688

export function partialEncodeURIPath(uri: string): string {
  if (uri.startsWith('data:')) return uri
  const filePath = cleanUrl(uri)
  const postfix = filePath !== uri ? uri.slice(filePath.length) : ''
  return filePath.replaceAll('%', '%25') + postfix
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does partialEncodeURIPath() do?
partialEncodeURIPath() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is partialEncodeURIPath() defined?
partialEncodeURIPath() is defined in packages/vite/src/node/utils.ts at line 1683.
What does partialEncodeURIPath() call?
partialEncodeURIPath() calls 1 function(s): cleanUrl.
What calls partialEncodeURIPath()?
partialEncodeURIPath() is called by 4 function(s): buildHtmlPlugin, customRelativeUrlMechanisms.worker-iife, getRelativeUrlFromDocument, relativeUrlMechanisms.es.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free