Repository navigation
build: fix adev first party linking and re-enable tests - #60825
Closed
devversion wants to merge 2 commits into
Closed
devversion wants to merge 2 commits into
devversion wants to merge 2 commits into
Conversation
alan-agius4
reviewed
Apr 10, 2025
This commit attempts to finally fix the long-standing first-party package linking issue with the rather tricky `rules_nodejs` toolchain. I've verified that no version of e.g. `@angular/core` ends up in the Bazel sandbox. This is achieved by also filtering transitive Angular deps for first-party linked packages. e.g. `@angular/docs`. In addition, `@angular/docs` accidentally ended up bundling parts of Angular core because it relied on an entry-point that was not part of the "well known externals". As part of the ongoing `ng_package` update/rewrite, we should look into disabling bundling of ANY external dependency/module. This is possible because we use relative imports inside APF packages as of recently! This commit should allow us to develop and continue new compiler features, without having to temporarily (or longer) disable all `angular.dev` unit tests! Fixes angular#54858.
devversion
force-pushed
the
fix-first-party-linking
branch
from
April 10, 2025 11:15
5931dee to
96b99f5
Compare
JeanMeche
approved these changes
Apr 10, 2025
|
Deployed adev-preview for 2f623b4 to: https://ng-dev-previews-fw--pr-angular-angular-60825-adev-prev-zoohhc53.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
alan-agius4
reviewed
Apr 10, 2025
alan-agius4
approved these changes
Apr 10, 2025
…hunks Since APF can contain shared chunks, where e.g. `eetemplate` lives, the `coreHasSymbol` check is no longer reliable. Right now it even prevents the version range check (that is reliably working) from running because we detect a `index.d.ts` file but simply don't find the requested symbol in there (we don't expand exports via type checker).
devversion
force-pushed
the
fix-first-party-linking
branch
from
April 10, 2025 13:08
320259e to
2f623b4
Compare
Member
Author
|
This PR was merged into the repository by commit abe9691. The changes were merged into the following branches: main |
devversion
added a commit
that referenced
this pull request
Apr 10, 2025
…hunks (#60825) Since APF can contain shared chunks, where e.g. `eetemplate` lives, the `coreHasSymbol` check is no longer reliable. Right now it even prevents the version range check (that is reliably working) from running because we detect a `index.d.ts` file but simply don't find the requested symbol in there (we don't expand exports via type checker). PR Close #60825
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #55282
This commit attempts to finally fix the long-standing first-party package linking issue with the rather tricky
rules_nodejstoolchain.I've verified that no version of e.g.
@angular/coreends up in the Bazel sandbox. This is achieved by also filtering transitive Angular deps for first-party linked packages. e.g.@angular/docs.In addition,
@angular/docsaccidentally ended up bundling parts of Angular core because it relied on an entry-point that was not part of the "well known externals". As part of the ongoingng_packageupdate/rewrite, we should look into disabling bundling of ANY external dependency/module. This is possible because we use relative imports inside APF packages as of recently!This commit should allow us to develop and continue new compiler features, without having to temporarily (or longer) disable all
angular.devunit tests!