Skip to content

Slow Build Time Native Federation. #1063

@fabianvieri

Description

@fabianvieri

For which library do you need help?

native-federation

Question

I got issue with native federation build time, when serving in development. I understand that the first build is slow and still caching. But for any subsequent build, its still slow when building the federation artifacts meanwhile the angular application builds is getting faster.

Right now, after cleaning .angular and native federation cache folder, also using option "cacheExternalArtifacts": true the build time is around 15-20s which is still significantly slower than the the application build. For context my setup is polyrepo and I have 6 exposed modules in this current projects.

Application bundle generation complete. [1.617 seconds] - 2026-02-13T07:48:55.350Z
INFO Building federation artefacts
DBG! 00:12:514.055ms - [build artifacts] - To bundle all mappings and exposed.

This issue is related to #559

logs.txt

Native Federation: 21.0.3
Angular: 21.0.5
Angular CLI: 21.0.3
Node: 24.12.0
NPM: 11.6.2
Browser: Chrome
Operation System: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions