File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/babel-plugin-jsx/src Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
import * as t from '@babel/types' ;
2
2
import { type NodePath } from '@babel/traverse' ;
3
- import { isHTMLTag , isSVGTag } from '@vue/shared'
3
+ import { isHTMLTag , isSVGTag } from '@vue/shared' ;
4
4
import type { State } from './interface' ;
5
5
import SlotFlags from './slotFlags' ;
6
6
export const JSX_HELPER_KEY = 'JSX_HELPER_KEY' ;
@@ -97,10 +97,7 @@ export const getTag = (
97
97
const namePath = path . get ( 'openingElement' ) . get ( 'name' ) ;
98
98
if ( namePath . isJSXIdentifier ( ) ) {
99
99
const { name } = namePath . node ;
100
- if (
101
- ! isHTMLTag ( name ) &&
102
- ! isSVGTag ( name )
103
- ) {
100
+ if ( ! isHTMLTag ( name ) && ! isSVGTag ( name ) ) {
104
101
return name === FRAGMENT
105
102
? createIdentifier ( state , FRAGMENT )
106
103
: path . scope . hasBinding ( name )
You can’t perform that action at this time.
0 commit comments