We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f832f commit 47c7af9Copy full SHA for 47c7af9
packages/compiler-core/src/babelUtils.ts
@@ -85,11 +85,12 @@ export function walkIdentifiers(
85
} else if (node.type === 'SwitchStatement') {
86
if (node.scopeIds) {
87
node.scopeIds.forEach(id => markKnownIds(id, knownIds))
88
+ } else {
89
+ // record switch case block-level local variables
90
+ walkSwitchStatement(node, false, id =>
91
+ markScopeIdentifier(node, id, knownIds),
92
+ )
93
}
- // record switch case block-level local variables
- walkSwitchStatement(node, false, id =>
- markScopeIdentifier(node, id, knownIds),
- )
94
} else if (node.type === 'CatchClause' && node.param) {
95
for (const id of extractIdentifiers(node.param)) {
96
markScopeIdentifier(node, id, knownIds)
0 commit comments