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
  787a2729_4dda_1298_01c7_e70ca6a7de39["normalizeFile()"]
  a95117a5_1d39_c20a_6dbb_afe1e854b377["getPreloadType()"]
  787a2729_4dda_1298_01c7_e70ca6a7de39 -->|calls| a95117a5_1d39_c20a_6dbb_afe1e854b377
  style 787a2729_4dda_1298_01c7_e70ca6a7de39 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.
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