8000 refactor(zone.js): additional cleanups to reduce code size by arturovt · Pull Request #61444 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

refactor(zone.js): additional cleanups to reduce code size #61444

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arturovt
Copy link
Contributor
@arturovt arturovt commented May 16, 2025

NOTE: Some code paths containing special handling for IE have been removed because we no longer support IE.

In this commit, we perform separate cleanups inside the zone.js package to reduce the number of && operations by using optional chaining, as it makes the code smaller and more readable.

The copySymbolProperties function is now tree-shakable in browser bundles because its implementation is only set in Node.js.

@angular-robot angular-robot bot added the area: zones Issues related to zone.js label May 16, 2025
@ngbot ngbot bot added this to the Backlog milestone May 16, 2025
@arturovt arturovt force-pushed the refactor/zone.js-optional-chaining-cleanups branch 5 times, most recently from 0f0a892 to 76787a6 Compare May 17, 2025 18:13
NOTE: Some code paths containing special handling for IE have been removed because we no longer support IE.

In this commit, we perform separate cleanups inside the zone.js package to reduce the number of `&&` operations by using optional chaining, as it makes the code smaller and more readable.

The `copySymbolProperties` function is now tree-shakable in browser bundles because its implementation is only set in Node.js.
@arturovt arturovt force-pushed the refactor/zone.js-optional-chaining-cleanups branch from 76787a6 to c5f01b5 Compare May 17, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: zones Issues related to zone.js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0