M001: Code-split large JS bundle (1.6MB) #1

Closed
opened 2026-05-08 13:52:24 +00:00 by Mark · 0 comments
Owner

Production build produces a single 1.6MB JS chunk. Break it up:

  • Dynamic import() for game pages (Play, Modes, Leaderboard)
  • Split Three.js / react-three-fiber into separate chunk
  • Split framer-motion / gsap into animations chunk
  • Configure build.rollupOptions.output.manualChunks in vite.config.ts
Production build produces a single 1.6MB JS chunk. Break it up: - Dynamic import() for game pages (Play, Modes, Leaderboard) - Split Three.js / react-three-fiber into separate chunk - Split framer-motion / gsap into animations chunk - Configure build.rollupOptions.output.manualChunks in vite.config.ts
Mark 2026-05-28 06:31:24 +00:00
Sign in to join this conversation.
No description provided.