fix(compiler-sfc): fix defineProps() call on imported identifier
This commit is contained in:
@@ -1492,7 +1492,15 @@ export function walkIdentifiers(
|
||||
})
|
||||
}
|
||||
|
||||
function isRefIdentifier(id: Identifier, parent: Node, parentStack: Node[]) {
|
||||
function isRefIdentifier(
|
||||
id: Identifier,
|
||||
parent: Node | null,
|
||||
parentStack: Node[]
|
||||
) {
|
||||
if (!parent) {
|
||||
return true
|
||||
}
|
||||
|
||||
// declaration id
|
||||
if (
|
||||
(parent.type === 'VariableDeclarator' ||
|
||||
|
||||
Reference in New Issue
Block a user