[!WARNING] Native federation has moved!
This is our older deprecated v3 version. Starting Angular 22, we're moving to a new repository. For upgrading from v3 to v4, please have a look at our new repository.
Playground App
You can test directly the libraries by using the playground application:
host application:
shell
npx nx run playground:serveremote application:
shell
npx nx run mfe1:serve --port 3001By using that approach you can test your modifications on the libraries.
Test Library on external repository
If you want to test the modifications directly on your application, you can follow the steps:
shell
npx nx run local-registryThen you can publish the libraries by using:
For Module federation:
shell
npm run publish-local:mf
shell
npm run publish-local:nf
This will first build the libraries and publish them to http://localhost:4873
install on the other repo with you favorite package manager.By default, the version from the package.json will be used. However, you can provide the version for a specific library by using:
npx nx run native-federation:publish-local -- --ver=17.0.8
Publish Libraries
Follow these steps to publish all libraries on npm:
shell
npm run publish:mfshell
npm run publish:nf
This will first build the libraries and publish them to npm registry.By default, the version from the package.json will be used and the tag will be next. However, you can provide the version and the tag for a specific library by using:
npx nx run native-federation:publish -- --ver=17.0.8 --tag=latest
$ claude mcp add module-federation-plugin \
-- python -m otcore.mcp_server <graph>