mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-02 10:03:25 +08:00
fix: checkIsComponent got wrong result
This commit is contained in:
@ -44,7 +44,7 @@ const checkIsComponent = (path: NodePath<t.JSXOpeningElement>): boolean => {
|
|||||||
return !isFragment(namePath); // For withCtx
|
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);
|
return !htmlTags.includes(tag) && !svgTags.includes(tag);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user