-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
chore(next): remove icons from optimizedPackageImports
#7825
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
Conversation
Signed-off-by: Aviv Keller <me@aviv.sh>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the '@heroicons/react' package from the optimizedPackageImports array as Next.js already optimizes it internally.
- Removed '@heroicons/react' from the optimizedPackageImports
- Updated apps/site/next.config.mjs accordingly
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7825 +/- ##
==========================================
- Coverage 75.48% 75.46% -0.03%
==========================================
Files 101 101
Lines 8309 8309
Branches 218 218
==========================================
- Hits 6272 6270 -2
- Misses 2035 2037 +2
Partials 2 2 ☔ View full report in Codecov by Sentry. |
|
Thoughts on using smth like https://github.com/hashicorp/nextjs-bundle-analysis so that we'd have empirical data (easily accessed, I realise we can run local analysis w/ foam tree) to confirm a change like this hasn't changed the bundle drastically? |
|
Lighthouse Results
|
We had that in the past, but needs to be added within the next.js config file... And it slows down builds enormously... |
Next.js already optimizes this import internally:
https://github.com/vercel/next.js/blob/12e888126ccf968193e7570a68db1bc35f90d52d/packages/next/src/server/config.ts#L715-L717