ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto

perf: optimize Vite dev server startup

Added explicit optimizeDeps.include to pre-bundle common dependencies:
- React ecosystem (react, react-dom, react-router-dom)
- Icon libraries (@icons-pack/react-simple-icons, lucide-react)
- Other deps (date-fns, jszip, zustand, @tanstack/react-virtual)

Also added server.fs.allow config for monorepo file serving.

This should speed up subsequent dev server starts by ensuring these
dependencies are consistently pre-bundled.

byarielm.fyi e04934ff 8f692c7f

verified
Changed files
+19
packages
+19
packages/web/vite.config.ts
··· 5 5 export default defineConfig({ 6 6 base: "/", 7 7 plugins: [react(), svgr()], 8 + optimizeDeps: { 9 + include: [ 10 + "react", 11 + "react-dom", 12 + "react-router-dom", 13 + "@icons-pack/react-simple-icons", 14 + "lucide-react", 15 + "date-fns", 16 + "jszip", 17 + "zustand", 18 + "@tanstack/react-virtual", 19 + ], 20 + }, 21 + server: { 22 + fs: { 23 + // Allow serving files from the monorepo root 24 + allow: ["../.."], 25 + }, 26 + }, 8 27 });