File tree 1 file changed +2
-4
lines changed
packages/plugin-vue-jsx/src
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'
6
6
import { createFilter , normalizePath } from 'vite'
7
7
import type { ComponentOptions } from 'vue'
8
8
import type { Plugin } from 'vite'
9
- // eslint-disable-next-line n/no-extraneous-import
10
- import type { CallExpression , Identifier } from '@babel/types'
11
9
import type { Options } from './types'
12
10
13
11
export * from './types'
@@ -108,11 +106,11 @@ function vueJsxPlugin(options: Options = {}): Plugin {
108
106
return {
109
107
visitor : {
110
108
CallExpression : {
111
- enter ( _path : babel . NodePath < CallExpression > ) {
109
+ enter ( _path : babel . NodePath < types . CallExpression > ) {
112
110
if (
113
111
isDefineComponentCall ( _path . node , defineComponentName )
114
112
) {
115
- const callee = _path . node . callee as Identifier
113
+ const callee = _path . node . callee as types . Identifier
116
114
callee . name = `/* @__PURE__ */ ${ callee . name } `
117
115
}
118
116
} ,
You can’t perform that action at this time.
0 commit comments