mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:51:08 +08:00
Update preset.ts
This commit is contained in:
parent
167056a3ad
commit
edad6bcd61
@ -13,7 +13,7 @@ export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = async (confi
|
|||||||
const { plugins = [] } = config;
|
const { plugins = [] } = config;
|
||||||
// TODO: set up eslint import to use typescript resolver
|
// TODO: set up eslint import to use typescript resolver
|
||||||
// eslint-disable-next-line import/no-unresolved
|
// 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();
|
const svelteConfig = await loadSvelteConfig();
|
||||||
|
|
||||||
// Add svelte plugin if the user does not have a Vite config of their own
|
// Add svelte plugin if the user does not have a Vite config of their own
|
||||||
|
Loading…
x
Reference in New Issue
Block a user