chore(docs/playground): add vite.optimizeDeps

This commit is contained in:
Benjamin Canac
2025-03-24 11:17:42 +01:00
parent c76f590097
commit cec9dadc7a
3 changed files with 13 additions and 2 deletions

View File

@@ -182,6 +182,10 @@ export default defineNuxtConfig({
fs: {
allow: process.env.NUXT_UI_PRO_PATH ? [resolve(process.env.NUXT_UI_PRO_PATH)] : undefined
}
},
optimizeDeps: {
// prevents reloading page when navigating between components
include: ['@internationalized/date', '@vueuse/shared', '@vueuse/integrations/useFuse', '@tanstack/vue-table', 'reka-ui', 'reka-ui/namespaced', 'embla-carousel-vue', 'embla-carousel-autoplay', 'embla-carousel-auto-scroll', 'embla-carousel-auto-height', 'embla-carousel-class-names', 'embla-carousel-fade', 'embla-carousel-wheel-gestures', 'colortranslator', 'tailwindcss/colors', 'tailwind-variants', 'ufo', 'zod', 'vaul-vue', 'scule', 'motion-v', 'json5', 'ohash']
}
},