You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that after upgrading my project from v19.4.4 to the latest version of Nx v19.7.2, the bundle size has increased from 660 kB to 1.29 MB, almost doubling in size. I haven't updated any module-federation configs, so I'm curious if the v2 of the module federation enhancement is causing a significant increase. Is this increase expected? Are there any best practices I can use to reduce our bundle size?
Before:
After:
Here's an another example with simple MFE repo
Expected Behavior
Ideally, the bundle size should stay the relatively the same
Module Federation 2.0 bundles the federtaion runtime into the remoteEntry files.
There is work being done currently by Zack Jackson to offer avenues to remove the federation runtime from the remoteEntry files: module-federation/core#2932
Current Behavior
I've noticed that after upgrading my project from v19.4.4 to the latest version of Nx v19.7.2, the bundle size has increased from 660 kB to 1.29 MB, almost doubling in size. I haven't updated any module-federation configs, so I'm curious if the v2 of the module federation enhancement is causing a significant increase. Is this increase expected? Are there any best practices I can use to reduce our bundle size?
Before:
After:
Here's an another example with simple MFE repo
Expected Behavior
Ideally, the bundle size should stay the relatively the same
GitHub Repo
N/A
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
4.4.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: