getPreloadType() — vue Function Reference
Architecture documentation for the getPreloadType() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD a95117a5_1d39_c20a_6dbb_afe1e854b377["getPreloadType()"] 787a2729_4dda_1298_01c7_e70ca6a7de39["normalizeFile()"] 787a2729_4dda_1298_01c7_e70ca6a7de39 -->|calls| a95117a5_1d39_c20a_6dbb_afe1e854b377 style a95117a5_1d39_c20a_6dbb_afe1e854b377 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/template-renderer/index.ts lines 293–306
function getPreloadType(ext: string): string {
if (ext === 'js') {
return 'script'
} else if (ext === 'css') {
return 'style'
} else if (/jpe?g|png|svg|gif|webp|ico/.test(ext)) {
return 'image'
} else if (/woff2?|ttf|otf|eot/.test(ext)) {
return 'font'
} else {
// not exhausting all possibilities here, but above covers common cases
return ''
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getPreloadType() do?
getPreloadType() is a function in the vue codebase.
What calls getPreloadType()?
getPreloadType() is called by 1 function(s): normalizeFile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free