Skip to content

Commit ab2516a

Browse files
committedAug 14, 2024··
refactor(vue-jsx): remove extraneous import
1 parent 7c2e023 commit ab2516a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎packages/plugin-vue-jsx/src/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import jsx from '@vue/babel-plugin-jsx'
66
import { createFilter, normalizePath } from 'vite'
77
import type { ComponentOptions } from 'vue'
88
import type { Plugin } from 'vite'
9-
// eslint-disable-next-line n/no-extraneous-import
10-
import type { CallExpression, Identifier } from '@babel/types'
119
import type { Options } from './types'
1210

1311
export * 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
},

0 commit comments

Comments
 (0)
Please sign in to comment.