diff --git a/code/frameworks/svelte-vite/src/preset.ts b/code/frameworks/svelte-vite/src/preset.ts index 870755ac6094..bf7a7f742511 100644 --- a/code/frameworks/svelte-vite/src/preset.ts +++ b/code/frameworks/svelte-vite/src/preset.ts @@ -14,14 +14,9 @@ export const viteFinal: NonNullable = async (confi // TODO: set up eslint import to use typescript resolver // eslint-disable-next-line import/no-unresolved const { svelte, loadSvelteConfig } = await import('@sveltejs/vite-plugin-svelte'); - const svelteOptions: Record = await options.presets.apply( - 'svelteOptions', - {}, - options - ); - const svelteConfig = { ...(await loadSvelteConfig()), ...svelteOptions }; + const svelteConfig = await loadSvelteConfig(); - // Add svelte plugin if not present + // Add svelte plugin if the user does not have a Vite config of their own if (!(await hasVitePlugins(plugins, ['vite-plugin-svelte']))) { plugins.push(svelte()); }