DEV Community

Discussion on: Migrating CRA to Micro Frontends with Single SPA

Collapse
 
ogzhanolguncu profile image
Oğuzhan Olguncu

Thank you. We can actually make them share the same dependencies we want through Webpack config and, of course, we need to add those dependencies to index.ejs. In the end, all those apps are getting rendered in a container. In theory, If we add common dependencies to the container and delete them from each app that would reduce the final bundle size.

But I guess that alone would not help you reduce the JS bundle of each app. All those Micro Frontends concepts and libraries are fairly young, maybe in the future people will come up with better solutions.
Let me know if you have further questions. Cheers!