Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(vite): constrain dep optimizer inputs for Electron HUD

webadderalle9a8f5689d63
diff --git a/vite.config.ts b/vite.config.ts
index c27dcc40..42b066fa 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -39,6 +39,18 @@ export default defineConfig({
'@': path.resolve(__dirname, 'src'),
},
},
+ optimizeDeps: {
+ entries: ['index.html'],
+ exclude: [
+ 'lucide-react',
+ 'react-icons/bs',
+ 'react-icons/fa',
+ 'react-icons/fa6',
+ 'react-icons/fi',
+ 'react-icons/md',
+ 'react-icons/rx',
+ ],
+ },
build: {
target: 'esnext',
minify: 'terser',