normalizeExpression() — vue Function Reference
Architecture documentation for the normalizeExpression() function in cssVars.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 373a6809_1052_5ca2_3579_e3eb12f59263["normalizeExpression()"] b08241c7_738d_9e08_b885_fad82facd4f3["cssVars.ts"] 373a6809_1052_5ca2_3579_e3eb12f59263 -->|defined in| b08241c7_738d_9e08_b885_fad82facd4f3 e9d55bf3_a525_60d3_e948_546c1b25721c["parseCssVars()"] e9d55bf3_a525_60d3_e948_546c1b25721c -->|calls| 373a6809_1052_5ca2_3579_e3eb12f59263 fb6267c8_5229_7c63_13f5_a76775258149["cssVarsPlugin()"] fb6267c8_5229_7c63_13f5_a76775258149 -->|calls| 373a6809_1052_5ca2_3579_e3eb12f59263 style 373a6809_1052_5ca2_3579_e3eb12f59263 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/cssVars.ts lines 30–39
function normalizeExpression(exp: string) {
exp = exp.trim()
if (
(exp[0] === `'` && exp[exp.length - 1] === `'`) ||
(exp[0] === `"` && exp[exp.length - 1] === `"`)
) {
return exp.slice(1, -1)
}
return exp
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does normalizeExpression() do?
normalizeExpression() is a function in the vue codebase, defined in packages/compiler-sfc/src/cssVars.ts.
Where is normalizeExpression() defined?
normalizeExpression() is defined in packages/compiler-sfc/src/cssVars.ts at line 30.
What calls normalizeExpression()?
normalizeExpression() is called by 2 function(s): cssVarsPlugin, parseCssVars.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free