Skip to content

Commit b7a97fd

Browse files
authored
Apply suggestions from code review
1 parent 1b328fb commit b7a97fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/language-server/src/plugins/svelte/SveltePlugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ export class SveltePlugin
111111
try {
112112
const svelteDoc = await this.getSvelteDoc(document);
113113
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
114115
if (document.config?.compilerOptions?.experimental) {
115-
// Svelte 5 only; we gotta write it like this else Svelte 4 fails on unknown key
116+
// @ts-ignore Svelte 5 only
116117
options.experimental = document.config.compilerOptions.experimental;
117118
}
118119
return await svelteDoc.getCompiledWith(options);

0 commit comments

Comments
 (0)