From e74f1d712b66873c06590fd47dcfcfc69aead7db Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Thu, 19 Sep 2024 13:51:34 +0200 Subject: [PATCH] chore: revert accidental commit --- .../src/svelte2tsx/processInstanceScriptContent.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/svelte2tsx/src/svelte2tsx/processInstanceScriptContent.ts b/packages/svelte2tsx/src/svelte2tsx/processInstanceScriptContent.ts index 50d0e5530..e226c2b1b 100644 --- a/packages/svelte2tsx/src/svelte2tsx/processInstanceScriptContent.ts +++ b/packages/svelte2tsx/src/svelte2tsx/processInstanceScriptContent.ts @@ -49,13 +49,7 @@ export function processInstanceScriptContent( const tsAst = ts.createSourceFile( 'component.ts.svelte', scriptContent, - ts.JSDocParsingMode - ? { - languageVersion: ts.ScriptTarget.Latest, - // Exists since TS 5.3 - jsDocParsingMode: ts.JSDocParsingMode.ParseNone - } - : ts.ScriptTarget.Latest, + ts.ScriptTarget.Latest, true, ts.ScriptKind.TS );