diff --git a/.storybook/main.ts b/.storybook/main.ts index d61f72eae..4c03c3a51 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -74,8 +74,15 @@ const config: StorybookConfig = { '@': process.cwd() + '/src' } }, + esbuild: { + // Prevent minification of identifiers to preserve _sfc_main + minifyIdentifiers: false, + keepNames: true + }, build: { rollupOptions: { + // Disable tree-shaking for Storybook to prevent Vue SFC exports from being removed + treeshake: false, onwarn: (warning, warn) => { // Suppress specific warnings if ( diff --git a/apps/desktop-ui/.storybook/main.ts b/apps/desktop-ui/.storybook/main.ts index 91c29eb7a..d425d550b 100644 --- a/apps/desktop-ui/.storybook/main.ts +++ b/apps/desktop-ui/.storybook/main.ts @@ -75,8 +75,15 @@ const config: StorybookConfig = { '@frontend-locales': process.cwd() + '/../../src/locales' } }, + esbuild: { + // Prevent minification of identifiers to preserve _sfc_main + minifyIdentifiers: false, + keepNames: true + }, build: { rollupOptions: { + // Disable tree-shaking for Storybook to prevent Vue SFC exports from being removed + treeshake: false, onwarn: (warning, warn) => { // Suppress specific warnings if (