Issues with code splitting in webpack config in an nx monorepo #18276
Unanswered
CodeMonkVJ
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Sorry, I don't know what is |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my monorepo there are a bunch of apps and a host app which is lazy loading the rest of the apps as remotes.
One of the icons ui library is repeatedly getting built with every app even when module federation is set up.
This is causing an unnecessary increase in size. This is what I am trying in my webpack config to try and split the ui library code but the code is still getting added in other chunks also.
EDIT: I am using an nx monorepo which has a bunch of plugins which sort of help in creating a webpack config which works well with the structures predefined by nx. More info here
Beta Was this translation helpful? Give feedback.
All reactions