diff --git a/code/frameworks/svelte-vite/src/utils.ts b/code/frameworks/svelte-vite/src/utils.ts index 87f2129aeb9f..514dada509a3 100644 --- a/code/frameworks/svelte-vite/src/utils.ts +++ b/code/frameworks/svelte-vite/src/utils.ts @@ -23,7 +23,7 @@ export async function handleSvelteKit(plugins: PluginOption[], options: Options) 'vite-plugin-sveltekit-compile', ]); - if (hasSvelteKitPlugins && framework !== '@storybook/sveltekit') { + if (hasSvelteKitPlugins && !framework.includes('@storybook/sveltekit')) { throw new Error(dedent` We've detected a SvelteKit project using the @storybook/svelte-vite framework, which is not supported in Storybook 7.0 Please use the @storybook/sveltekit framework instead.