Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8265 +/- ##
==========================================
+ Coverage 76.56% 76.57% +0.01%
==========================================
Files 117 117
Lines 9733 9733
Branches 329 329
==========================================
+ Hits 7452 7453 +1
+ Misses 2279 2278 -1
Partials 2 2 ☔ View full report in Codecov by Sentry. |
|
Could we move all the SVGs to the public folder and use the Image component to import them? |
That would introduce another set of problems. The reason why your code is not treeshaked is because you're using Please remove such index.ts file and let people to manually import logos as needed. We should probably also add https://github.com/nodejs/nodejs.org/blob/main/apps/site/next.config.mjs#L94 our ui-components package to this list. |
|
There's no way any bundler can know at build-time what logos will be used here or not: /This is just poor unoptimized code 😅 |
Description
This doesn’t reduce the build, at least locally. Any other ideas on how to reduce the build size because of the logos?
Validation
Related Issues
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.