Core

Applies to

The core package — @softarc/native-federation — is the bundler- and framework-agnostic builder library that sits at the heart of Native Federation. Every adapter (Angular, esbuild, Vite, …) is built on top of it.

This section covers the v4 core. For a full overview of what changed since v3 — packages, ESM, repositories — see v3 vs v4.

What the Core Does

Given a federation config and a pluggable bundler adapter, the core library:

Where It Fits

The core defines two contracts — a federation config (what to share and expose) and a build adapter (how to invoke the bundler) — and lets everything else plug in. For how it relates to the Adapter, Runtime and Orchestrator layers, see the Architecture Overview.

In this section

If you are building an application (rather than an adapter) you'll usually consume the core through an adapter. The Angular adapter and esbuild adapter both hide the core entirely behind higher-level APIs.