For Angular 11 see https://github.com/alexzuza/angular-plugin-architecture-with-module-federation
Example of building AOT compiled Angular 7 plugin that can be consumed on client and server sides(SSR)
For Angular 8 see cli8 branch
npm install
Building shared plugin
npm run build:shared
Building plugins
npm run build:plugin1
npm run build:plugin2
Dev mode
npm start
Server-side
npm run build:ssr
npm run serve:ssr
MIT