From dcc9889e66a4183caebd0cb070378091711d5a36 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 3 Jul 2025 18:13:19 +0800 Subject: [PATCH] storybook: try to fix optimizeDeps --- next-ui/vite.config.mts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/next-ui/vite.config.mts b/next-ui/vite.config.mts index bfca53df1..66cf30994 100644 --- a/next-ui/vite.config.mts +++ b/next-ui/vite.config.mts @@ -117,6 +117,33 @@ export default defineConfig({ }, }, }, + optimizeDeps: { + include: [ + 'vuetify/components/VAlert', + 'vuetify/components/VApp', + 'vuetify/components/VBadge', + 'vuetify/components/VBtn', + 'vuetify/components/VCard', + 'vuetify/components/VCheckbox', + 'vuetify/components/VChip', + 'vuetify/components/VCombobox', + 'vuetify/components/VDataTable', + 'vuetify/components/VEmptyState', + 'vuetify/components/VFab', + 'vuetify/components/VGrid', + 'vuetify/components/VIcon', + 'vuetify/components/VList', + 'vuetify/components/VMain', + 'vuetify/components/VMenu', + 'vuetify/components/VNumberInput', + 'vuetify/components/VSelect', + 'vuetify/components/VSkeletonLoader', + 'vuetify/components/VSnackbarQueue', + 'vuetify/components/VTextField', + 'vuetify/components/VToolbar', + 'vuetify/directives', + ], + }, plugins: [ // The plugin will run tests for the stories defined in your Storybook config // See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest