Home / Function/ getRealPath() — vite Function Reference

getRealPath() — vite Function Reference

Architecture documentation for the getRealPath() function in resolve.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  5d4527d1_7d40_0edb_838d_808ad61dc38e["getRealPath()"]
  dcff87b0_a8ea_57a2_3b29_a7b8f19986f3["resolve.ts"]
  5d4527d1_7d40_0edb_838d_808ad61dc38e -->|defined in| dcff87b0_a8ea_57a2_3b29_a7b8f19986f3
  1c922666_7528_3264_0a1f_191c477449fe["tryResolveRealFile()"]
  1c922666_7528_3264_0a1f_191c477449fe -->|calls| 5d4527d1_7d40_0edb_838d_808ad61dc38e
  04eba3ee_b103_fb12_64a9_27459b1e87c1["tryResolveRealFileOrType()"]
  04eba3ee_b103_fb12_64a9_27459b1e87c1 -->|calls| 5d4527d1_7d40_0edb_838d_808ad61dc38e
  a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"]
  5d4527d1_7d40_0edb_838d_808ad61dc38e -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  style 5d4527d1_7d40_0edb_838d_808ad61dc38e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/resolve.ts lines 1221–1226

function getRealPath(resolved: string, preserveSymlinks?: boolean): string {
  if (!preserveSymlinks) {
    resolved = safeRealpathSync(resolved)
  }
  return normalizePath(resolved)
}

Domain

Subdomains

Frequently Asked Questions

What does getRealPath() do?
getRealPath() is a function in the vite codebase, defined in packages/vite/src/node/plugins/resolve.ts.
Where is getRealPath() defined?
getRealPath() is defined in packages/vite/src/node/plugins/resolve.ts at line 1221.
What does getRealPath() call?
getRealPath() calls 1 function(s): normalizePath.
What calls getRealPath()?
getRealPath() is called by 2 function(s): tryResolveRealFile, tryResolveRealFileOrType.

Analyze Your Own Codebase

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

Try Supermodel Free