Home / Function/ normalizePath() — vite Function Reference

normalizePath() — vite Function Reference

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

Function typescript ViteCore ConfigEngine calls 1 called by 61

Entity Profile

Dependency Diagram

graph TD
  a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  a4adb1a7_cf54_091f_eb63_8217e684a8e1 -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  d2c87886_e4f7_0918_f1c5_5ddd6c5e08e8["createRolldownDepPluginTransform()"]
  d2c87886_e4f7_0918_f1c5_5ddd6c5e08e8 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  5249d8ad_aa91_06b9_bc9a_efd575b1f133["run()"]
  5249d8ad_aa91_06b9_bc9a_efd575b1f133 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  58c4a210_68fe_1b4d_ed49_d59203f97ef1["resolveConfig()"]
  58c4a210_68fe_1b4d_ed49_d59203f97ef1 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  53f0a505_9626_e709_c92b_e7f00c6e0bd7["loadConfigFromFile()"]
  53f0a505_9626_e709_c92b_e7f00c6e0bd7 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  ff7562f3_f396_12b1_2d0c_c03c1ee28f2c["getEnvFilesForMode()"]
  ff7562f3_f396_12b1_2d0c_c03c1ee28f2c -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  b53437fa_d2e4_a560_0d14_dfc84f740176["runOptimizeDeps()"]
  b53437fa_d2e4_a560_0d14_dfc84f740176 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  464801d1_961b_0f9e_c4bf_fae5244fc377["getOptimizedDepPath()"]
  464801d1_961b_0f9e_c4bf_fae5244fc377 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  5bdad750_70b8_ac01_1434_41e23a885c2f["getDepsCacheDirPrefix()"]
  5bdad750_70b8_ac01_1434_41e23a885c2f -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  287d6c40_e13a_3c71_8d45_c949a2448ad8["createIsOptimizedDepUrl()"]
  287d6c40_e13a_3c71_8d45_c949a2448ad8 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  5f546dad_7489_c77b_99f6_5017e8e85235["parseDepsOptimizerMetadata()"]
  5f546dad_7489_c77b_99f6_5017e8e85235 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  ad1ec3b0_3e16_129e_0edb_116fa393a5d0["stringifyDepsOptimizerMetadata()"]
  ad1ec3b0_3e16_129e_0edb_116fa393a5d0 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  9d9d1d96_da01_acb8_5086_7a043722cf91["rolldownDepPlugin()"]
  9d9d1d96_da01_acb8_5086_7a043722cf91 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  01ea698c_723c_af06_e469_c7d7c469b6bb["rolldownScanPlugin()"]
  01ea698c_723c_af06_e469_c7d7c469b6bb -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1
  style a4adb1a7_cf54_091f_eb63_8217e684a8e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 228–230

export function normalizePath(id: string): string {
  return path.posix.normalize(isWindows ? slash(id) : id)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does normalizePath() do?
normalizePath() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is normalizePath() defined?
normalizePath() is defined in packages/vite/src/node/utils.ts at line 228.
What does normalizePath() call?
normalizePath() calls 1 function(s): slash.
What calls normalizePath()?
normalizePath() is called by 61 function(s): _createServer, _formatLog, areSeparateFolders, assetPlugin, buildHtmlPlugin, buildReporterPlugin, bundleWorkerEntry, checkPublicFile, and 53 more.

Analyze Your Own Codebase

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

Try Supermodel Free