angularwebpack-module-federationangular-module-federation

I am trying to expose an angular 8 project with module federation to another angular project that is angular 15, is that possible? if so any pointers?


Trying to mfe an angular 8 project to an angular 15 shell project, both running separately just fine. I tried installing module federation to my angular 8 projects, but immediately errores emerged, is it even possible to use module federation in angular 8 project?


Solution

  • Module federation is a Webpack 5 feature. Angular 8 uses Webpack 4. Experimental support for Webpack 5 was added in Angular 11, stable support in Angular 12, see the Angular v12 release notes.

    It may be possible with a custom build, but not with the Angular CLI.