Home / Function/ getFileUrlFromRelativePath() — vite Function Reference

getFileUrlFromRelativePath() — vite Function Reference

Architecture documentation for the getFileUrlFromRelativePath() function in build.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  2e49850d_c444_cb39_a9e5_ea869b60a7b3["getFileUrlFromRelativePath()"]
  45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"]
  2e49850d_c444_cb39_a9e5_ea869b60a7b3 -->|defined in| 45981d85_cbdd_e969_8c88_c17072ea0eda
  b7ee159d_9bf3_6c73_a076_3ca2cb8785b5["relativeUrlMechanisms.cjs()"]
  b7ee159d_9bf3_6c73_a076_3ca2cb8785b5 -->|calls| 2e49850d_c444_cb39_a9e5_ea869b60a7b3
  3b7491c0_90d0_3f05_a53d_9586858b2a2e["relativeUrlMechanisms.umd()"]
  3b7491c0_90d0_3f05_a53d_9586858b2a2e -->|calls| 2e49850d_c444_cb39_a9e5_ea869b60a7b3
  e8f01c99_8f7f_1cd1_d732_d12c6eb186cf["getFileUrlFromFullPath()"]
  2e49850d_c444_cb39_a9e5_ea869b60a7b3 -->|calls| e8f01c99_8f7f_1cd1_d732_d12c6eb186cf
  9b07f141_2a1b_a452_87bd_d6f801123c56["escapeId()"]
  2e49850d_c444_cb39_a9e5_ea869b60a7b3 -->|calls| 9b07f141_2a1b_a452_87bd_d6f801123c56
  style 2e49850d_c444_cb39_a9e5_ea869b60a7b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/build.ts lines 1539–1540

const getFileUrlFromRelativePath = (path: string) =>
  getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`)

Domain

Subdomains

Frequently Asked Questions

What does getFileUrlFromRelativePath() do?
getFileUrlFromRelativePath() is a function in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is getFileUrlFromRelativePath() defined?
getFileUrlFromRelativePath() is defined in packages/vite/src/node/build.ts at line 1539.
What does getFileUrlFromRelativePath() call?
getFileUrlFromRelativePath() calls 2 function(s): escapeId, getFileUrlFromFullPath.
What calls getFileUrlFromRelativePath()?
getFileUrlFromRelativePath() is called by 2 function(s): relativeUrlMechanisms.cjs, relativeUrlMechanisms.umd.

Analyze Your Own Codebase

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

Try Supermodel Free