Update preset.ts

This commit is contained in:
Ben McCann 2023-02-06 09:31:48 -08:00 committed by GitHub
parent 167056a3ad
commit edad6bcd61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = async (confi
const { plugins = [] } = config;
// TODO: set up eslint import to use typescript resolver
// eslint-disable-next-line import/no-unresolved
const { loadSvelteConfig } = await import('@sveltejs/vite-plugin-svelte');
const { svelte, loadSvelteConfig } = await import('@sveltejs/vite-plugin-svelte');
const svelteConfig = await loadSvelteConfig();
// Add svelte plugin if the user does not have a Vite config of their own