Home / Function/ windowsSafeRealPathSync() — vite Function Reference

windowsSafeRealPathSync() — vite Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b37c4caa_8852_a76d_d1fb_15d16a693604["windowsSafeRealPathSync()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  b37c4caa_8852_a76d_d1fb_15d16a693604 -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  49983da6_08ff_5c1b_b63f_c429d1e6b269["optimizeSafeRealPathSync()"]
  b37c4caa_8852_a76d_d1fb_15d16a693604 -->|calls| 49983da6_08ff_5c1b_b63f_c429d1e6b269
  style b37c4caa_8852_a76d_d1fb_15d16a693604 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 700–706

function windowsSafeRealPathSync(path: string): string {
  if (!firstSafeRealPathSyncRun) {
    optimizeSafeRealPathSync()
    firstSafeRealPathSyncRun = true
  }
  return fs.realpathSync(path)
}

Domain

Subdomains

Frequently Asked Questions

What does windowsSafeRealPathSync() do?
windowsSafeRealPathSync() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is windowsSafeRealPathSync() defined?
windowsSafeRealPathSync() is defined in packages/vite/src/node/utils.ts at line 700.
What does windowsSafeRealPathSync() call?
windowsSafeRealPathSync() calls 1 function(s): optimizeSafeRealPathSync.

Analyze Your Own Codebase

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

Try Supermodel Free