diff --git a/.storybook/main.js b/.storybook/main.js index 90a2dd2..3e36796 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -12,6 +12,20 @@ const config = { "@chromatic-com/storybook", "@storybook/addon-interactions", ], + core: { + builder: '@storybook/builder-vite', + }, + async viteFinal(config) { + // Merge custom configuration into the default config + const { mergeConfig } = await import('vite'); + + return mergeConfig(config, { + // Add dependencies to pre-optimization + optimizeDeps: { + exclude: ['sb-vite'], + }, + }); + }, framework: { name: "@storybook/html-vite", options: {},