From 8f1be225cbbcf3173b36980d778fc21baa6a3ae6 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 18 Dec 2024 22:51:07 +0100 Subject: [PATCH] pre-optimize internal modules --- src/compiler/plugins.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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;