Home / Function/ normalizeFile() — vue Function Reference

normalizeFile() — vue Function Reference

Architecture documentation for the normalizeFile() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  90475430_af60_c547_a7e9_164688d0e660["normalizeFile()"]
  70b92f4c_021d_4bb1_d973_4e94bcad69f8["index.ts"]
  90475430_af60_c547_a7e9_164688d0e660 -->|defined in| 70b92f4c_021d_4bb1_d973_4e94bcad69f8
  bd852b9b_df08_5e28_e9bb_7e1d28b3163a["getPreloadType()"]
  90475430_af60_c547_a7e9_164688d0e660 -->|calls| bd852b9b_df08_5e28_e9bb_7e1d28b3163a
  style 90475430_af60_c547_a7e9_164688d0e660 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/template-renderer/index.ts lines 282–291

function normalizeFile(file: string): Resource {
  const withoutQuery = file.replace(/\?.*/, '')
  const extension = path.extname(withoutQuery).slice(1)
  return {
    file,
    extension,
    fileWithoutQuery: withoutQuery,
    asType: getPreloadType(extension)
  }
}

Subdomains

Frequently Asked Questions

What does normalizeFile() do?
normalizeFile() is a function in the vue codebase, defined in packages/server-renderer/src/template-renderer/index.ts.
Where is normalizeFile() defined?
normalizeFile() is defined in packages/server-renderer/src/template-renderer/index.ts at line 282.
What does normalizeFile() call?
normalizeFile() calls 1 function(s): getPreloadType.

Analyze Your Own Codebase

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

Try Supermodel Free