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 88} from '@vue-macros/common'
99import { type Options , resolveOption } from './core/options'
1010import { resolveName } from './core/utils'
11- import type { ExportDefaultDeclaration , Node } from '@babel/types'
11+ import type * as t from '@babel/types'
1212
13- function getNodeStart ( node : Node ) {
13+ function getNodeStart ( node : t . Node ) {
1414 if ( node . leadingComments && node . leadingComments . length > 0 ) {
1515 return node . leadingComments [ 0 ] . start !
1616 }
@@ -35,7 +35,7 @@ export default createUnplugin<Options | undefined, false>((rawOptions = {}) => {
3535
3636 const program = babelParse ( code , lang )
3737 const defaultExport = program . body . find (
38- ( node ) : node is ExportDefaultDeclaration =>
38+ ( node ) : node is t . ExportDefaultDeclaration =>
3939 node . type === 'ExportDefaultDeclaration'
4040 )
4141 if ( ! defaultExport ) return
You can’t perform that action at this time.
0 commit comments