File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed 
packages/plugin-vue-jsx/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ import jsx from '@vue/babel-plugin-jsx'
66import  {  createFilter ,  normalizePath  }  from  'vite' 
77import  type  {  ComponentOptions  }  from  'vue' 
88import  type  {  Plugin  }  from  'vite' 
9- // eslint-disable-next-line n/no-extraneous-import 
10- import  type  {  CallExpression ,  Identifier  }  from  '@babel/types' 
119import  type  {  Options  }  from  './types' 
1210
1311export  *  from  './types' 
@@ -108,11 +106,11 @@ function vueJsxPlugin(options: Options = {}): Plugin {
108106            return  { 
109107              visitor : { 
110108                CallExpression : { 
111-                   enter ( _path : babel . NodePath < CallExpression > )  { 
109+                   enter ( _path : babel . NodePath < types . CallExpression > )  { 
112110                    if  ( 
113111                      isDefineComponentCall ( _path . node ,  defineComponentName ) 
114112                    )  { 
115-                       const  callee  =  _path . node . callee  as  Identifier 
113+                       const  callee  =  _path . node . callee  as  types . Identifier 
116114                      callee . name  =  `/* @__PURE__ */ ${ callee . name }  
117115                    } 
118116                  } , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments