From 0c71560f4c91b910cb9c30c7922e3633ce35e6ae Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 1 Feb 2023 13:08:02 +0100 Subject: [PATCH] disable vite-plugin-sveltekit-guard --- code/frameworks/sveltekit/src/preset.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/frameworks/sveltekit/src/preset.ts b/code/frameworks/sveltekit/src/preset.ts index 9b0bf6091f7..6c98e344eff 100644 --- a/code/frameworks/sveltekit/src/preset.ts +++ b/code/frameworks/sveltekit/src/preset.ts @@ -15,12 +15,11 @@ export const viteFinal: NonNullable = async (confi let { plugins = [] } = baseConfig; - // Remove vite-plugin-svelte-kit from plugins if using SvelteKit - // see https://github.com/storybookjs/storybook/issues/19280#issuecomment-1281204341 + // disable specific plugins that are not compatible with Storybook plugins = ( await withoutVitePlugins(plugins, [ - // @sveltejs/kit@1.0.0-next.587 and later 'vite-plugin-sveltekit-compile', + 'vite-plugin-sveltekit-guard', ]) ).concat(configOverrides());