From 43fa1c290c42213bf5b02a6b95c95f48339ce08b Mon Sep 17 00:00:00 2001 From: Quentin Deroubaix Date: Wed, 3 Jan 2024 08:55:07 +0100 Subject: [PATCH] fix: initial 500 error when navigating from home page --- demo/vite.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/demo/vite.config.ts b/demo/vite.config.ts index 1252ee189b..305ca5c3c7 100644 --- a/demo/vite.config.ts +++ b/demo/vite.config.ts @@ -56,4 +56,16 @@ export default defineConfig({ define: { 'import.meta.env.AGNOSUI_VERSION': version, }, + optimizeDeps: { + include: [ + '@amadeus-it-group/tansu', + 'highlight.js/lib/core', + 'highlight.js/lib/languages/typescript', + 'highlight.js/lib/languages/css', + 'highlight.js/lib/languages/scss', + 'highlight.js/lib/languages/xml', + 'highlight.js/lib/languages/bash', + '@floating-ui/dom', + ], + }, });