From 07ddcd2a08c103246b2b60f9df1ffb477ff97006 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 26 Feb 2026 00:23:55 +0100 Subject: [PATCH] fix: resolve Vite dependency pre-bundling errors (#8102) Exclude `windmill-client` from optimizeDeps (only appears in template strings, not an actual frontend dependency) and remove uninstalled `monaco-editor-wrapper` from optimizeDeps.include. Co-authored-by: Claude Opus 4.6 --- frontend/vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index a3b01b00c0..686b3645aa 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -88,10 +88,11 @@ const config = { plugins: [sveltekit(), ...(process.env.HTTPS === 'true' ? [mkcert()] : []), plugin], define: { __pkg__: version }, optimizeDeps: { - include: ['highlight.js', 'highlight.js/lib/core', 'monaco-vim', 'monaco-editor-wrapper'], + include: ['highlight.js', 'highlight.js/lib/core', 'monaco-vim'], exclude: [ '@codingame/monaco-vscode-standalone-typescript-language-features', '@codingame/monaco-vscode-standalone-languages', + 'windmill-client' ] }, worker: { format: 'es' },