DSpace / dspace-angular

DSpace User Interface built on Angular.io
https://wiki.lyrasis.org/display/DSDOC8x/
BSD 3-Clause "New" or "Revised" License
125 stars 415 forks source link

Size regression in `main.js` bundle caused by standalone component migration #2899

Open ybnd opened 5 months ago

ybnd commented 5 months ago

Describe the bug Looks like migrating to standalone components in #2750 increased the size of our main.js bundle by about 30kB.

While this is not a significant increase, it's a bit counter-intuitive since the claim is that standalone components should improve the bundle structure.

Here are some improvements we can make:

ybnd commented 5 months ago

Note: for the numbers above I compared a8f31948bc9 and 41eccbbfe15, the "potential gains" from splitting up ListableModule may be different after the Angular 16 upgrade

ybnd commented 5 months ago

Just re-checked: main.js is ~600kB currently (down from ~670kB) But the potential size reductions from ↑ still apply.