diff --git a/code/frameworks/svelte-vite/src/preset.ts b/code/frameworks/svelte-vite/src/preset.ts index cec2cd6d7d66..0bca7efd1cde 100644 --- a/code/frameworks/svelte-vite/src/preset.ts +++ b/code/frameworks/svelte-vite/src/preset.ts @@ -14,7 +14,7 @@ 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 svelteConfig = await loadSvelteConfig() || {}; + const svelteConfig = (await loadSvelteConfig()) || {}; // Add svelte plugin if the user does not have a Vite config of their own if (!(await hasVitePlugins(plugins, ['vite-plugin-svelte']))) {