Skip to content

Commit 0ec758b

Browse files
committed
add remaining options
1 parent 25a39d2 commit 0ec758b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/sveltekit/src/vite/recastTypescriptParser.ts

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ import type { Options } from 'recast';
4141
export const parser: Options['parser'] = {
4242
parse: (source: string) =>
4343
babelParse(source, {
44+
strictMode: false,
45+
allowImportExportEverywhere: true,
46+
allowReturnOutsideFunction: true,
47+
startLine: 1,
48+
tokens: true,
4449
plugins: [
4550
'typescript',
4651
'asyncGenerators',

0 commit comments

Comments
 (0)