mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 07:16:02 +00:00
fix(vite): constrain dep optimizer inputs for Electron HUD
Limit optimizeDeps scanning to index.html and exclude icon packages that were producing stale/missing prebundle chunks in the transparent HUD renderer.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user