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,
|
||||
ids: TransformContext['identifiers']
|
||||
): boolean {
|
||||
if (!node) {
|
||||
if (!node || Object.keys(ids).length === 0) {
|
||||
return false
|
||||
}
|
||||
switch (node.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user