Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jan 7, 2024
1 parent 1010c17 commit eb98f1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/graphql-language-service-server/src/parsers/vue.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { parse, compileScript, SFCScriptBlock } from '@vue/compiler-sfc';
import { RangeMapper, SourceParser } from './types';
import { Position, Range } from 'graphql-language-service';
import { BlockStatement, Statement } from '@babel/types';

type ParseVueSFCResult =
| { type: 'error'; errors: Error[] }
Expand Down Expand Up @@ -39,8 +40,8 @@ export function parseVueSFC(source: string): ParseVueSFCResult {
return {
type: 'ok',
scriptOffset: scriptBlock.loc.start.line - 1,
scriptSetupAst: scriptBlock?.scriptSetupAst,
scriptAst: scriptBlock?.scriptAst,
scriptSetupAst: scriptBlock?.scriptSetupAst as Statement[],
scriptAst: scriptBlock?.scriptAst as BlockStatement[],
};
}

Expand Down

0 comments on commit eb98f1a

Please sign in to comment.