Angular Adapter

The v3 Angular adapter for Native Federation — a builder, schematics and config helpers that integrate native-federation into Angular's esbuild-based Application Builder.

@angular-architects/native-federation is the first-class integration between Angular's @angular/build:application builder and the Native Federation core. It ships a builder that wraps the Angular CLI, schematics that scaffold hosts and remotes, an Nx generator, and Angular-aware config helpers.

Its version tracks the Angular major it targets: the 21.x line documented here builds against Angular 21 and depends on @softarc/native-federation@~3.5 and @softarc/native-federation-runtime@~3.5. Earlier majors of the adapter follow the same shape back to Angular 14.

This section covers the v3 adapter. The v4 adapter is a different package on Angular 20/21 (@angular-architects/native-federation-v4) and takes the original name again from Angular 22. For what changed, see v3 vs v4; for the upgrade itself, Migration to v4.

What's in the Box

PieceEntry pointPurpose
Builder@angular-architects/native-federation:buildReplaces the default Angular build and serve targets. Wraps @angular/build:application, runs the federation build, and serves federation artifacts through the dev-server. See Builder.
Schematicsng add @angular-architects/native-federationInitializes a project as a host, dynamic-host or remote — rewrites angular.json, adds es-module-shims to the polyfills, splits main.ts, and creates federation.config.js. Also ships appbuilder and remove. See Schematics.
Config helpers@angular-architects/native-federation/configwithNativeFederation, share, shareAll, findRootTsConfigJson, DEFAULT_SKIP_LIST — re-exported from the core — plus the Angular-specific shareAngularLocales. See Angular Config.
Runtime@angular-architects/native-federationA plain export * from '@softarc/native-federation-runtime'. Everything the adapter offers at runtime is the classic runtime. See Runtime.
Nx generator@angular-architects/native-federation:native-federationAdds an Nx library project pre-wired to the federation builder.
Nx executor@angular-architects/native-federation:buildThe same builder registered as an Nx executor.

Why an Adapter?

The core builder is intentionally framework- and bundler-agnostic: hand it a federation.config.js and a build adapter, and it emits remoteEntry.json plus the bundles it references. The Angular adapter supplies the parts an Angular project needs on top of that:

In this section