Skip to content

Conversation

@JiaLiPassion
Copy link
Contributor

This is the same PR with #40962 for the 13.2.x patch branch.

Zone.js supports the google closure compiler in the advance optimization mode,
to prevent closure compiler modify the onProperty name such as Element.prototype.onclick,
Zone.js implements the onProperty patch logic by declaring all the
event names in the source code, this increases the bundle size and also require
updating the event names array to keep the information updated.

Now google closure compiler has the required event names defined in the built-in
externs files, so zone.js can use more simple implementation and decrease the bundle size
of zone.js (about 4k).

@JiaLiPassion JiaLiPassion added the target: patch This PR is targeted for the next patch release label Mar 2, 2022
@pullapprove pullapprove bot requested review from alxhub and atscott March 2, 2022 05:12
@JiaLiPassion JiaLiPassion force-pushed the zone-events-patch branch 3 times, most recently from 165cafb to 7d62a12 Compare March 2, 2022 10:13
@jessicajaniuk jessicajaniuk added the area: zones Issues related to zone.js label Mar 2, 2022
@ngbot ngbot bot added this to the Backlog milestone Mar 2, 2022
@AndrewKushnir
Copy link
Contributor

FYI, adding "PullApprove: disable" since it's a patch-only version of already approved PR (#40962).

@jessicajaniuk jessicajaniuk added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 3, 2022
@atscott
Copy link
Contributor

atscott commented Mar 21, 2022

@JiaLiPassion Can you retarget this for the 13.3.x branch?

@JiaLiPassion JiaLiPassion force-pushed the zone-events-patch branch 2 times, most recently from bc8c43e to 9dc1e81 Compare March 22, 2022 06:06
@JiaLiPassion JiaLiPassion changed the base branch from 13.2.x to 13.3.x March 22, 2022 06:07
…e size

Zone.js supports the google closure compiler in the advance optimization mode,
to prevent closure compiler modify the `onProperty` name such as `Element.prototype.onclick`,
Zone.js implements the `onProperty` patch logic by declaring all the
event names in the source code, this increases the bundle size and also require
updating the event names array to keep the information updated.

Now google closure compiler has the required event names defined in the built-in
externs files, so zone.js can use more simple implementation and decrease the bundle size
of zone.js (about 4k).
@JiaLiPassion
Copy link
Contributor Author

@atscott , sure, I just rebased this PR to 13.3.x

@atscott atscott removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 23, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Mar 24, 2022

@JiaLiPassion Is this ready to be merged?

@JiaLiPassion JiaLiPassion added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 26, 2022
@JiaLiPassion
Copy link
Contributor Author

@dylhunn , the Android test at saucelab is failing, I am not sure why, still need some time to figure it out.

@dylhunn
Copy link
Contributor

dylhunn commented Mar 27, 2022

No worries, thanks!

@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 Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews area: zones Issues related to zone.js PullApprove: disable target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants