We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e77981 commit d8b5f18Copy full SHA for d8b5f18
packages/graphql-language-service-server/src/parsers/babel.ts
@@ -1,8 +1,11 @@
1
-import { parse, ParserPlugin } from '@babel/parser';
+import { parse, ParseResult, ParserPlugin } from '@babel/parser';
2
import { BABEL_PLUGINS, PARSER_OPTIONS } from '../constants';
3
import { SourceParser } from './types';
4
5
-export const babelParser = (text: string, plugins?: ParserPlugin[]) => {
+export const babelParser = (
6
+ text: string,
7
+ plugins?: ParserPlugin[],
8
+): ParseResult => {
9
const babelPlugins = [...BABEL_PLUGINS];
10
if (plugins) {
11
babelPlugins.push(...plugins);
0 commit comments