From c3e9874be4d94b137f5e4d97dc64c813962d53bc Mon Sep 17 00:00:00 2001 From: dominikg Date: Thu, 9 Nov 2023 22:54:02 +0100 Subject: [PATCH] chore: ignore type error for now --- packages/vite-plugin-svelte/src/utils/compile.js | 1 + packages/vite-plugin-svelte/src/utils/esbuild.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/vite-plugin-svelte/src/utils/compile.js b/packages/vite-plugin-svelte/src/utils/compile.js index 92d07eae0..3ac308784 100644 --- a/packages/vite-plugin-svelte/src/utils/compile.js +++ b/packages/vite-plugin-svelte/src/utils/compile.js @@ -53,6 +53,7 @@ export const _createCompileSvelte = (makeHot) => { const compileOptions = { ...options.compilerOptions, filename, + // @ts-expect-error generate type is different for svelte5 generate: isSvelte5 ? (ssr ? 'server' : 'client') : ssr ? 'ssr' : 'dom' }; if (isSvelte3) { diff --git a/packages/vite-plugin-svelte/src/utils/esbuild.js b/packages/vite-plugin-svelte/src/utils/esbuild.js index e3f616430..aac16bd73 100644 --- a/packages/vite-plugin-svelte/src/utils/esbuild.js +++ b/packages/vite-plugin-svelte/src/utils/esbuild.js @@ -86,6 +86,7 @@ async function compileSvelte(options, { filename, code }, statsCollection) { ...options.compilerOptions, css, filename, + // @ts-expect-error generate type is different for svelte5 generate: isSvelte5 ? 'client' : 'dom' }; if (isSvelte3) {