Skip to content

chore(mf): Migrate to Angular 22#1120

Open
Aukevanoost wants to merge 3 commits into
mainfrom
feat/mf-ng-22
Open

chore(mf): Migrate to Angular 22#1120
Aukevanoost wants to merge 3 commits into
mainfrom
feat/mf-ng-22

Conversation

@Aukevanoost

Copy link
Copy Markdown
Collaborator

This pull request introduces major updates to support Angular 22 and transitions the experimental builder integration from rsbuild to rspack. It updates dependencies, configuration files, and documentation to reflect these changes, and refactors the rspack integration to use the Nx-maintained @nx/angular-rspack package. The pull request also removes legacy rsbuild code and improves the Module Federation setup for rspack, ensuring compatibility with Angular 22 and simplifying the developer experience.

Key changes:

Angular 22 and Dependency Updates

  • Bumped versions of @angular-architects/module-federation, @angular-architects/module-federation-runtime, and @angular-architects/module-federation-tools to 22.0.0, and updated peer and internal dependencies to require Angular 22 and @angular-builders/custom-webpack instead of ngx-build-plus. [1] [2] [3] [4] [5]

Migration from rsbuild to rspack

  • Replaced all rsbuild-related code, configuration, and documentation with rspack equivalents, including updating schematics, removing rsbuild-specific plugins and patch tasks, and switching to @nx/angular-rspack for the builder integration. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Rspack Module Federation integration improvements

  • Refactored with-federation.ts to use rspack's Configuration type and ModuleFederationPlugin, ensuring correct configuration for ES modules, improved shared mappings, and dev server tweaks for CORS and HMR settings.
  • Updated the generated module federation config and schematic logic to use project-relative paths and ensure unique naming for containers. [1] [2]

Documentation and Configuration Changes

  • Updated README.md to reference rspack instead of rsbuild, clarified builder usage, and documented the switch from ngx-build-plus to @angular-builders/custom-webpack for Angular 22+. [1] [2] [3]
  • Updated strictness in tsconfig.json files to "strict": false for both runtime and tools libraries.
  • Updated schematic schema and removed obsolete prod config and patch schematic. [1] [2] [3]

These changes collectively modernize the library for Angular 22, improve developer experience with rspack, and ensure continued compatibility and maintainability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant