getAliasPatternMatcher() — vite Function Reference
Architecture documentation for the getAliasPatternMatcher() function in preAlias.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD ae0e5a50_b89b_8a12_820a_fee4d319a219["getAliasPatternMatcher()"] 1ad4458e_b744_979c_c30e_c1021fdd26b7["preAlias.ts"] ae0e5a50_b89b_8a12_820a_fee4d319a219 -->|defined in| 1ad4458e_b744_979c_c30e_c1021fdd26b7 a1fc1de5_905b_efe7_d960_3597604fbdfe["importAnalysisPlugin()"] a1fc1de5_905b_efe7_d960_3597604fbdfe -->|calls| ae0e5a50_b89b_8a12_820a_fee4d319a219 57415665_c9eb_2aaf_bde8_568754cae687["getAliasPatterns()"] ae0e5a50_b89b_8a12_820a_fee4d319a219 -->|calls| 57415665_c9eb_2aaf_bde8_568754cae687 9bace565_4b23_b1e6_8d82_883dae6cfae8["matches()"] ae0e5a50_b89b_8a12_820a_fee4d319a219 -->|calls| 9bace565_4b23_b1e6_8d82_883dae6cfae8 style ae0e5a50_b89b_8a12_820a_fee4d319a219 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/plugins/preAlias.ts lines 126–132
export function getAliasPatternMatcher(
entries: (AliasOptions | undefined) & Alias[],
): (importee: string) => boolean {
const patterns = getAliasPatterns(entries)
return (importee: string) =>
patterns.some((pattern) => matches(pattern, importee))
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getAliasPatternMatcher() do?
getAliasPatternMatcher() is a function in the vite codebase, defined in packages/vite/src/node/plugins/preAlias.ts.
Where is getAliasPatternMatcher() defined?
getAliasPatternMatcher() is defined in packages/vite/src/node/plugins/preAlias.ts at line 126.
What does getAliasPatternMatcher() call?
getAliasPatternMatcher() calls 2 function(s): getAliasPatterns, matches.
What calls getAliasPatternMatcher()?
getAliasPatternMatcher() is called by 1 function(s): importAnalysisPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free