perf: skip hasScopeRef check if there are no scope vars
This commit is contained in:
parent
d69db0b2fd
commit
b980ddb607
@ -342,7 +342,7 @@ function hasScopeRef(
|
|||||||
node: TemplateChildNode | IfBranchNode | SimpleExpressionNode | undefined,
|
node: TemplateChildNode | IfBranchNode | SimpleExpressionNode | undefined,
|
||||||
ids: TransformContext['identifiers']
|
ids: TransformContext['identifiers']
|
||||||
): boolean {
|
): boolean {
|
||||||
if (!node) {
|
if (!node || Object.keys(ids).length === 0) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
switch (node.type) {
|
switch (node.type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user