mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
fix: checkIsComponent got wrong result
This commit is contained in:
parent
17a0e56342
commit
5c59e2e27b
@ -44,7 +44,7 @@ const checkIsComponent = (path: NodePath<t.JSXOpeningElement>): boolean => {
|
||||
return !isFragment(namePath); // For withCtx
|
||||
}
|
||||
|
||||
const tag = (namePath as NodePath<t.JSXIdentifier>).get('name');
|
||||
const tag = (namePath as NodePath<t.JSXIdentifier>).node.name;
|
||||
|
||||
return !htmlTags.includes(tag) && !svgTags.includes(tag);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user