Skip to content

refactor(compiler): extra diagnostics for @defer in local compilation mode#53899

Closed
AndrewKushnir wants to merge 2 commits intoangular:mainfrom
AndrewKushnir:defer_local_compilation_diagnostic
Closed

refactor(compiler): extra diagnostics for @defer in local compilation mode#53899
AndrewKushnir wants to merge 2 commits intoangular:mainfrom
AndrewKushnir:defer_local_compilation_diagnostic

Conversation

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Jan 12, 2024

This commit adds extra logic to produce a diagnostic in case @Component.deferredImports contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added state: WIP area: compiler Issues related to `ngc`, Angular's template compiler target: rc This PR is targeted for the next release-candidate core: defer Issues related to @defer blocks. labels Jan 12, 2024
@ngbot ngbot bot added this to the Backlog milestone Jan 12, 2024
@AndrewKushnir AndrewKushnir force-pushed the defer_local_compilation_diagnostic branch 3 times, most recently from a3b109c to 237a6da Compare January 13, 2024 02:19
@AndrewKushnir AndrewKushnir force-pushed the defer_local_compilation_diagnostic branch from 237a6da to bed154a Compare January 17, 2024 01:29
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release and removed state: WIP target: rc This PR is targeted for the next release-candidate labels Jan 17, 2024
@AndrewKushnir AndrewKushnir marked this pull request as ready for review January 17, 2024 01:30
@AndrewKushnir AndrewKushnir requested a review from alxhub January 17, 2024 01:30
@AndrewKushnir
Copy link
Contributor Author

@pmvald thanks for the review 👍 I've addressed comments in a fixup commit (bed154a).

@AndrewKushnir AndrewKushnir added action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 17, 2024
@AndrewKushnir
Copy link
Contributor Author

Presubmit.

…on mode

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.
@AndrewKushnir AndrewKushnir force-pushed the defer_local_compilation_diagnostic branch from bed154a to aeb054d Compare January 17, 2024 17:38
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: rc This PR is targeted for the next release-candidate and removed action: presubmit The PR is in need of a google3 presubmit target: patch This PR is targeted for the next patch release labels Jan 17, 2024
@dylhunn
Copy link
Contributor

dylhunn commented Jan 17, 2024

This PR was merged into the repository by commit b0e0f00.

@dylhunn dylhunn closed this in b0e0f00 Jan 17, 2024
dylhunn pushed a commit that referenced this pull request Jan 17, 2024
…on mode (#53899)

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Close #53899
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…on mode (angular#53899)

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Close angular#53899
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
…on mode (angular#53899)

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Close angular#53899
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
…on mode (angular#53899)

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Close angular#53899
nikvarma pushed a commit to nikvarma/angular that referenced this pull request Jan 31, 2024
…on mode (angular#53899)

This commit adds extra logic to produce a diagnostic in case `@Component.deferredImports` contain types from imports that also bring eager symbols. This would result in retaining a regular import and generating a dynamic import, which would not allow to defer-load dependencies.

PR Close angular#53899
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler core: defer Issues related to @defer blocks. merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants