Skip to content

refactor(@angular/build): provide a pre-link resolution condition for APF #29979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Mar 31, 2025

To support future APF changes that may include pre-linked code specific to the Angular version used to create the package, an additional package resolution condition will now be automatically added to the build process for applications. A condition in the form of angular:linked-<version>, where <version> is the full package version of @angular/core, will now be present during application builds. This change in combination with APF changes will allow matching packages to avoid the linking step during a build. Non-version matching packages will continue to function and use the existing linking transformation process.

@clydin clydin added the target: major This PR is targeted for the next major release label Mar 31, 2025
@clydin clydin marked this pull request as ready for review April 1, 2025 00:16
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 1, 2025
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

… APF

To support future APF changes that may include pre-linked code specific
to the Angular version used to create the package, an additional package
resolution condition will now be automatically added to the build process
for applications. A condition in the form of `angular:linked-<version>`,
where `<version>` is the full package version of `@angular/core`, will now
be present during application builds. This change in combination with APF
changes will allow matching packages to avoid the linking step during a
build. Non-version matching packages will continue to function and use
the existing linking transformation process.
@clydin clydin force-pushed the application/linked-packages branch from f573ff6 to e58c0ed Compare April 1, 2025 13:16
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 1, 2025
@clydin clydin merged commit da7063f into angular:main Apr 1, 2025
31 checks passed
@clydin clydin deleted the application/linked-packages branch April 1, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants