Releases: angular-architects/module-federation-plugin
Releases · angular-architects/module-federation-plugin
Version 14
Updated for Angular CLI 13.1
-
Important: Use CLI 13.1
-
Details for Migration and API changes:
https://github.com/angular-architects/module-federation-plugin/blob/main/migration-guide.md
12.5.0
Nx Support
ng add now uses Nx builders for Nx workspaces. To detect if an Nx workspace is used, the schematics basically look out for an nx.json. You can also control this behavior by hand using the --nx-builders switch now supported by ng add (e. g. --nx-builders false).
Testing
The ng add schematic is not changing the test config in your angular.json anymore to prevent issues with eager bundles and webpack module federation.
Consequences:
- Remotes: No issue
- Hosts: Should be tested with E2E tests
Share Helper
Shared Libs and Dynamic MF
- Support for sharing libs of a monorepo
- Support for dynamic Module Federation
- Updated docs and tutorial showcasing the above-mentioned new features
- Generating smarter webpack configuration
- Proposes all other projects as remotes in comments. Just keep the lines you need.
- Moves
main.tstobootstrap.tsand creates a newmain.tsdynamically importingbootstrap.ts
Angular CLI 11
- Tested with Angular 11 and Angular CLI 11 (final)
- Generating better webpack.config.js
- Skipping unneeded parts
- Defining shared Angular libs as singletons