Merge pull request #20870 from storybookjs/fix-sveltekit-plugin

SvelteKit: Disable failing `vite-plugin-sveltekit-guard`
This commit is contained in:
Norbert de Langen 2023-02-01 14:19:33 +01:00 committed by GitHub
commit 32ad0aacf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,12 +15,11 @@ export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = 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());