fix(reactivity-transform): apply transform on exported variable declarations
fix #5298
This commit is contained in:
@@ -229,6 +229,12 @@ export function transformAST(
|
||||
stmt.left.type === 'VariableDeclaration'
|
||||
) {
|
||||
walkVariableDeclaration(stmt.left)
|
||||
} else if (
|
||||
stmt.type === 'ExportNamedDeclaration' &&
|
||||
stmt.declaration &&
|
||||
stmt.declaration.type === 'VariableDeclaration'
|
||||
) {
|
||||
walkVariableDeclaration(stmt.declaration, isRoot)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -562,6 +568,7 @@ export function transformAST(
|
||||
return
|
||||
}
|
||||
|
||||
// skip type nodes
|
||||
if (
|
||||
parent &&
|
||||
parent.type.startsWith('TS') &&
|
||||
|
||||
Reference in New Issue
Block a user