File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
} from '@vue-macros/common'
9
9
import { type Options , resolveOption } from './core/options'
10
10
import { resolveName } from './core/utils'
11
- import type { ExportDefaultDeclaration , Node } from '@babel/types'
11
+ import type * as t from '@babel/types'
12
12
13
- function getNodeStart ( node : Node ) {
13
+ function getNodeStart ( node : t . Node ) {
14
14
if ( node . leadingComments && node . leadingComments . length > 0 ) {
15
15
return node . leadingComments [ 0 ] . start !
16
16
}
@@ -35,7 +35,7 @@ export default createUnplugin<Options | undefined, false>((rawOptions = {}) => {
35
35
36
36
const program = babelParse ( code , lang )
37
37
const defaultExport = program . body . find (
38
- ( node ) : node is ExportDefaultDeclaration =>
38
+ ( node ) : node is t . ExportDefaultDeclaration =>
39
39
node . type === 'ExportDefaultDeclaration'
40
40
)
41
41
if ( ! defaultExport ) return
You can’t perform that action at this time.
0 commit comments