Skip to content

Commit 858a2a3

Browse files
committed
fix(vite): add lucide-solid to vite optimizeDeps
The web app was failing to load lucide-solid when run in dev mode via codespaces. Claude said this: > This is a common issue with icon libraries like lucide-solid in Codespaces. > Vite serves each icon as an individual file from node_modules, and the > Codespaces proxy can't handle the large number of parallel requests, causing > them to fail. > The fix is to tell Vite to pre-bundle lucide-solid so all icons get > consolidated into a single bundled file instead of hundreds of individual > requests.
1 parent a9fb20b commit 858a2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder-frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727
optimizeDeps: {
2828
// Ensure Preact is not pre-bundled separately, avoiding duplicate instances
29-
include: ['preact', 'preact/hooks', 'preact/compat']
29+
include: ['preact', 'preact/hooks', 'preact/compat', 'lucide-solid']
3030
},
3131
resolve: {
3232
dedupe: ['preact', 'preact/hooks', 'preact/compat']

0 commit comments

Comments
 (0)