fix(reactivity-transform): apply transform for labelled variable declarations
ref https://github.com/vuejs/core/issues/5298#issuecomment-1017970061
This commit is contained in:
@@ -235,6 +235,11 @@ export function transformAST(
|
||||
stmt.declaration.type === 'VariableDeclaration'
|
||||
) {
|
||||
walkVariableDeclaration(stmt.declaration, isRoot)
|
||||
} else if (
|
||||
stmt.type === 'LabeledStatement' &&
|
||||
stmt.body.type === 'VariableDeclaration'
|
||||
) {
|
||||
walkVariableDeclaration(stmt.body, isRoot)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user