processRule() — vue Function Reference
Architecture documentation for the processRule() function in scoped.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 99a3bcbe_5e50_5f54_c9cf_4fcc3035fdfa["processRule()"] 4b2e229f_d6b9_e76e_db88_f797ff948c08["scopedPlugin()"] 4b2e229f_d6b9_e76e_db88_f797ff948c08 -->|calls| 99a3bcbe_5e50_5f54_c9cf_4fcc3035fdfa 4e6f187d_2802_07a7_c3d9_a19c48da8e97["rewriteSelector()"] 99a3bcbe_5e50_5f54_c9cf_4fcc3035fdfa -->|calls| 4e6f187d_2802_07a7_c3d9_a19c48da8e97 style 99a3bcbe_5e50_5f54_c9cf_4fcc3035fdfa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/stylePlugins/scoped.ts lines 63–78
function processRule(id: string, rule: Rule) {
if (
processedRules.has(rule) ||
(rule.parent &&
rule.parent.type === 'atrule' &&
/-?keyframes$/.test((rule.parent as AtRule).name))
) {
return
}
processedRules.add(rule)
rule.selector = selectorParser(selectorRoot => {
selectorRoot.each(selector => {
rewriteSelector(id, selector, selectorRoot)
})
}).processSync(rule.selector)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does processRule() do?
processRule() is a function in the vue codebase.
What does processRule() call?
processRule() calls 1 function(s): rewriteSelector.
What calls processRule()?
processRule() is called by 1 function(s): scopedPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free