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 1b328fb commit b7a97fdCopy full SHA for b7a97fd
packages/language-server/src/plugins/svelte/SveltePlugin.ts
@@ -111,8 +111,9 @@ export class SveltePlugin
111
try {
112
const svelteDoc = await this.getSvelteDoc(document);
113
const options: any = { generate: 'dom' }; // 'client' in Svelte 5
114
+ // @ts-ignore Svelte 5 only; we gotta write it like this else Svelte 4 fails on unknown key
115
if (document.config?.compilerOptions?.experimental) {
- // Svelte 5 only; we gotta write it like this else Svelte 4 fails on unknown key
116
+ // @ts-ignore Svelte 5 only
117
options.experimental = document.config.compilerOptions.experimental;
118
}
119
return await svelteDoc.getCompiledWith(options);
0 commit comments