Home / Function/ globSafePath() — vite Function Reference

globSafePath() — vite Function Reference

Architecture documentation for the globSafePath() function in importMetaGlob.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  901430e9_a43f_1c7e_f014_5c6e77e1bb95["globSafePath()"]
  b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb["importMetaGlob.ts"]
  901430e9_a43f_1c7e_f014_5c6e77e1bb95 -->|defined in| b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb
  ee8a5ec4_ca35_74a5_092e_1714daae7f56["globSafeResolvedPath()"]
  ee8a5ec4_ca35_74a5_092e_1714daae7f56 -->|calls| 901430e9_a43f_1c7e_f014_5c6e77e1bb95
  2c2bd501_c65a_dbfd_7656_698e0b5e10f2["toAbsoluteGlob()"]
  2c2bd501_c65a_dbfd_7656_698e0b5e10f2 -->|calls| 901430e9_a43f_1c7e_f014_5c6e77e1bb95
  a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"]
  901430e9_a43f_1c7e_f014_5c6e77e1bb95 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  style 901430e9_a43f_1c7e_f014_5c6e77e1bb95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/importMetaGlob.ts lines 612–615

function globSafePath(path: string) {
  // slash path to ensure \ is converted to / as \ could lead to a double escape scenario
  return escapePath(normalizePath(path))
}

Domain

Subdomains

Frequently Asked Questions

What does globSafePath() do?
globSafePath() is a function in the vite codebase, defined in packages/vite/src/node/plugins/importMetaGlob.ts.
Where is globSafePath() defined?
globSafePath() is defined in packages/vite/src/node/plugins/importMetaGlob.ts at line 612.
What does globSafePath() call?
globSafePath() calls 1 function(s): normalizePath.
What calls globSafePath()?
globSafePath() is called by 2 function(s): globSafeResolvedPath, toAbsoluteGlob.

Analyze Your Own Codebase

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

Try Supermodel Free