chore(frontend): split the chart library and lazy-load screens #82

Open
mariusz.pacek wants to merge 0 commits from mariusz.pacek/chore/frontend-code-splitting AGit into master
pull from: mariusz.pacek/chore/frontend-code-splitting
Owner

Removes the 500 kB chunk warning: recharts in its own chunk, Historia/Ustawienia/Stan lazy-loaded; main chunk 672 kB to 264 kB.

Removes the 500 kB chunk warning: recharts in its own chunk, Historia/Ustawienia/Stan lazy-loaded; main chunk 672 kB to 264 kB.
mariusz.pacek added 1 commit 2026-10-24 14:57:12 +00:00
chore(frontend): split the chart library and lazy-load screens
CI / Check (gateway, backend, frontend) (push) Successful in 1m29s
c0c46973e8
The single index chunk (672 kB, gzip 199 kB) triggered Vite's 500 kB
warning. Recharts goes into its own "charts" chunk; Historia, Ustawienia
and Stan load on demand behind Suspense ("Ładowanie…"). Energy stays in
the main chunk because the first screen imports EnergyToday from it.

Before: index 671.93 kB (gzip 199.08 kB).
After: index 264.23 kB (gzip 83.46 kB), charts 395.52 kB (gzip 113.20 kB),
Settings 9.82 kB, History 2.43 kB, Status 1.72 kB. No warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All checks were successful
CI / Check (gateway, backend, frontend) (push) Successful in 1m29s
This branch is already included in the target branch. There is nothing to merge.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin refs/pull/82/head:mariusz.pacek/chore/frontend-code-splitting
git checkout mariusz.pacek/chore/frontend-code-splitting
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mariusz.pacek/home-pump#82