From 468a0f085a2f3bdd85adf30051c490d84804baf2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 25 Nov 2024 11:33:12 +0100 Subject: [PATCH] storybook: disable preserveSymlinks for vite resolve preserveSymlinks is for yarn only, it breaks NPM. Signed-off-by: Simon Ser --- storybook/.storybook/main.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/storybook/.storybook/main.ts b/storybook/.storybook/main.ts index e92340f8..d698e79c 100644 --- a/storybook/.storybook/main.ts +++ b/storybook/.storybook/main.ts @@ -1,6 +1,5 @@ import type { StorybookConfig } from '@storybook/react-vite'; import { dirname, join } from 'path'; -import { mergeConfig } from 'vite'; /** @type { import('@storybook/html-vite').StorybookConfig } */ const config: StorybookConfig = { @@ -24,13 +23,6 @@ const config: StorybookConfig = { }, staticDirs: ['../public'], logLevel: 'debug', - async viteFinal(config) { - return mergeConfig(config, { - resolve: { - preserveSymlinks: true, - }, - }); - }, }; export default config;