We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a0e56 commit 5c59e2eCopy full SHA for 5c59e2e
packages/babel-plugin-jsx/src/utils.ts
@@ -44,7 +44,7 @@ const checkIsComponent = (path: NodePath<t.JSXOpeningElement>): boolean => {
44
return !isFragment(namePath); // For withCtx
45
}
46
47
- const tag = (namePath as NodePath<t.JSXIdentifier>).get('name');
+ const tag = (namePath as NodePath<t.JSXIdentifier>).node.name;
48
49
return !htmlTags.includes(tag) && !svgTags.includes(tag);
50
};
0 commit comments