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', + ], + }, });