Skip to content

angular-architects/module-federation-plugin

Folders and files

NameName
Last commit message
Last commit date
Dec 17, 2024
Aug 3, 2023
Aug 3, 2023
Jan 31, 2025
Apr 11, 2025
Sep 14, 2024
Oct 9, 2020
Aug 18, 2023
Mar 18, 2024
Jan 31, 2025
Dec 20, 2024
Mar 18, 2024
Aug 4, 2022
Apr 5, 2022
Mar 15, 2024
Aug 6, 2023
Aug 3, 2023
Mar 18, 2024
Aug 4, 2022
Aug 4, 2022
Aug 4, 2022
Sep 13, 2024
Apr 9, 2025
Apr 9, 2025
Mar 18, 2024
Sep 11, 2022
Jan 4, 2025
Sep 22, 2024
Sep 14, 2024

Repository files navigation

@angular-architects/module-federation

Local Development

Playground App

You can test directly the libraries by using the playground application:

  1. Start the host application:
    npx nx run playground:serve
  2. Start the remote application:
    npx nx run mfe1:serve --port 3001

By 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:

  1. Start the local registry Verdaccio:
    npx nx run local-registry
  2. Then you can publish the libraries by using:
  • For Module federation:

    npm run publish-local:mf
  • For Native federation:

    npm run publish-local:nf

    This will first build the libraries and publish them to http://localhost:4873

  1. Then just re-run the 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:

  • For Module federation:
    npm run publish:mf
  • For Native federation:
    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