Skip to content

Commit d32e371

Browse files
committed
prettier
1 parent 08f07d1 commit d32e371

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/babel-plugin-jsx/src/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as t from '@babel/types';
22
import { type NodePath } from '@babel/traverse';
3-
import { isHTMLTag , isSVGTag } from '@vue/shared'
3+
import { isHTMLTag, isSVGTag } from '@vue/shared';
44
import type { State } from './interface';
55
import SlotFlags from './slotFlags';
66
export const JSX_HELPER_KEY = 'JSX_HELPER_KEY';
@@ -97,10 +97,7 @@ export const getTag = (
9797
const namePath = path.get('openingElement').get('name');
9898
if (namePath.isJSXIdentifier()) {
9999
const { name } = namePath.node;
100-
if (
101-
!isHTMLTag(name) &&
102-
!isSVGTag(name)
103-
) {
100+
if (!isHTMLTag(name) && !isSVGTag(name)) {
104101
return name === FRAGMENT
105102
? createIdentifier(state, FRAGMENT)
106103
: path.scope.hasBinding(name)

0 commit comments

Comments
 (0)