diff --git a/src/compiler/plugins.ts b/src/compiler/plugins.ts index 5215300..15788e1 100644 --- a/src/compiler/plugins.ts +++ b/src/compiler/plugins.ts @@ -69,6 +69,13 @@ export async function transformPlugin(): Promise { return { name: 'storybook:addon-svelte-csf', + config() { + return { + optimizeDeps: { + include: ['@storybook/addon-svelte-csf/internal/create-runtime-stories'], + } + } + }, async transform(compiledCode, id) { if (!filter(id)) return undefined;