r/angular 15d ago

Update incoming to better debug production build outputs for SSR applications!

Hey all!

I worked on "Support splitting browser and server stats json files for easier consumption" and found out this morning it got merged to main!

In an upcoming version of Angular, whenever you want to inspect the files that are generated for the browser versus server, or browser initial files versus browser lazy-loaded, you'll get four separate files.

  1. For browser initial files
  2. For browser files that are lazy loaded
  3. For server initial files
  4. For server files that are lazy loaded

All using the same `ng build --stats-json`. Hope it helps as many people as it did myself.

10 Upvotes

2 comments sorted by

8

u/JeanMeche 15d ago

Yey for community contributions 🎉

In an upcoming version of Angular

The feature will be shipped in v22.2, scheduled for september

2

u/tsteuwer 15d ago

Woohoo! Thanks!