genNormalScriptCssVarsCode() — vue Function Reference
Architecture documentation for the genNormalScriptCssVarsCode() function in cssVars.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ec134563_fe99_b34c_861f_267104e87086["genNormalScriptCssVarsCode()"] b08241c7_738d_9e08_b885_fad82facd4f3["cssVars.ts"] ec134563_fe99_b34c_861f_267104e87086 -->|defined in| b08241c7_738d_9e08_b885_fad82facd4f3 6195696d_b4e9_b5d7_3dd5_1966a03d855f["compileScript()"] 6195696d_b4e9_b5d7_3dd5_1966a03d855f -->|calls| ec134563_fe99_b34c_861f_267104e87086 847be4cb_fc6a_9296_b72f_58b4cc679dd7["genCssVarsCode()"] ec134563_fe99_b34c_861f_267104e87086 -->|calls| 847be4cb_fc6a_9296_b72f_58b4cc679dd7 style ec134563_fe99_b34c_861f_267104e87086 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/cssVars.ts lines 160–179
export function genNormalScriptCssVarsCode(
cssVars: string[],
bindings: BindingMetadata,
id: string,
isProd: boolean
): string {
return (
`\nimport { ${CSS_VARS_HELPER} as _${CSS_VARS_HELPER} } from 'vue'\n` +
`const __injectCSSVars__ = () => {\n${genCssVarsCode(
cssVars,
bindings,
id,
isProd
)}}\n` +
`const __setup__ = __default__.setup\n` +
`__default__.setup = __setup__\n` +
` ? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }\n` +
` : __injectCSSVars__\n`
)
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does genNormalScriptCssVarsCode() do?
genNormalScriptCssVarsCode() is a function in the vue codebase, defined in packages/compiler-sfc/src/cssVars.ts.
Where is genNormalScriptCssVarsCode() defined?
genNormalScriptCssVarsCode() is defined in packages/compiler-sfc/src/cssVars.ts at line 160.
What does genNormalScriptCssVarsCode() call?
genNormalScriptCssVarsCode() calls 1 function(s): genCssVarsCode.
What calls genNormalScriptCssVarsCode()?
genNormalScriptCssVarsCode() is called by 1 function(s): compileScript.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free