Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tech-debt): manually split large libs into their own chunks #3098

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Aug 31, 2023

Summary

Manually split chunks into smaller chunks

Comparison:

Before After
Graph view image Screenshot 2023-08-31 at 17 07 44
Chunks image image

This is an attempt to fix the Vercel build which silently fails on #3067

Now there are more chunks, and the biggest chunk is 1.7mB/585kB vs 6.7mB/1.8mB before.

⚠️ WARNING ⚠️

With the further chunk split, the app doesn't load all at once. It might be perceived as slower to load.
Let's verify this is not causing a too big UX impact

I also removed the Sentry plugin as it was there only for uploading the generated sourcemaps. But the sourcemaps generation have been disable as that also caused the vercel build to fail...

To Test

  1. Open the app in a private browsing window
  • Observe it loading

Load comparison

Before

Screen.Recording.2023-08-31.at.17.50.49.mov

Now

Screen.Recording.2023-08-31.at.17.49.11.mov

It was meant for source maps, but when it's turned on Vercel builds always fail
@vercel
Copy link

vercel bot commented Aug 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview Aug 31, 2023 5:14pm

🌃 Cosmos ↗︎

@alfetopito alfetopito self-assigned this Aug 31, 2023
@alfetopito alfetopito requested review from anxolin and a team and removed request for anxolin August 31, 2023 16:22
@alfetopito alfetopito marked this pull request as draft August 31, 2023 16:32
@alfetopito alfetopito marked this pull request as ready for review August 31, 2023 16:53
Copy link
Collaborator

@shoom3301 shoom3301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@alfetopito alfetopito merged commit 3d42c76 into develop Sep 1, 2023
@alfetopito alfetopito deleted the manually-split-chunks branch September 1, 2023 12:48
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants