From b024324abedf2f7cbafcadd2fb4ad0180df8989e Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 12 Jul 2024 20:25:28 +0200 Subject: [PATCH] Merge pull request #28581 from storybookjs/norbert/cpc-remove-vite-extra CPC: Fix vite builder had wrong conditions (cherry picked from commit a0a031ea309ab6bc361661eae73b19908ee54592) --- code/builders/builder-vite/src/vite-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/builders/builder-vite/src/vite-config.ts b/code/builders/builder-vite/src/vite-config.ts index dd06ce60155a..2a965dbacffc 100644 --- a/code/builders/builder-vite/src/vite-config.ts +++ b/code/builders/builder-vite/src/vite-config.ts @@ -65,7 +65,7 @@ export async function commonConfig( base: './', plugins: await pluginConfig(options), resolve: { - conditions: ['storybook', 'stories', 'test', 'browser', 'import', 'module', 'default'], + conditions: ['storybook', 'stories', 'test'], preserveSymlinks: isPreservingSymlinks(), alias: { assert: require.resolve('browser-assert'),