normalizeFile() — vue Function Reference
Architecture documentation for the normalizeFile() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 68f3051b_4624_dbe4_7a9c_b889da84d960["normalizeFile()"] dd60f8d3_0510_6c88_43e7_0031a6d72263["index.ts"] 68f3051b_4624_dbe4_7a9c_b889da84d960 -->|defined in| dd60f8d3_0510_6c88_43e7_0031a6d72263 7a09cab5_a8e4_521d_e2cb_463234b41d04["getPreloadType()"] 68f3051b_4624_dbe4_7a9c_b889da84d960 -->|calls| 7a09cab5_a8e4_521d_e2cb_463234b41d04 style 68f3051b_4624_dbe4_7a9c_b889da84d960 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)
}
}
Domain
Subdomains
Calls
Source
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