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
We're using Module Federation Enhanced's Shared Tree Shaking together with Rspack.
However, Shared Tree Shaking appears to stop working when custom splitChunks.cacheGroups are configured for chunk grouping.
This creates a tradeoff:
With Shared Tree Shaking enabled and default chunking, builds generate a very large number of small chunks.
With custom splitChunks.cacheGroups, chunk count becomes manageable, but Shared Tree Shaking no longer seems to be applied.
Is this limitation expected?
If so, is there a recommended way to make Shared Tree Shaking work together with custom splitChunks.cacheGroups?
If this combination is not currently supported, would you consider adding support for it in the future?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're using Module Federation Enhanced's Shared Tree Shaking together with Rspack.
However, Shared Tree Shaking appears to stop working when custom
splitChunks.cacheGroupsare configured for chunk grouping.This creates a tradeoff:
With Shared Tree Shaking enabled and default chunking, builds generate a very large number of small chunks.
With custom s
plitChunks.cacheGroups, chunk count becomes manageable, but Shared Tree Shaking no longer seems to be applied.Is this limitation expected?
If so, is there a recommended way to make Shared Tree Shaking work together with custom
splitChunks.cacheGroups?If this combination is not currently supported, would you consider adding support for it in the future?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions