-
Notifications
You must be signed in to change notification settings - Fork 27k
refactor(zone.js): remove onProp eventNames array to reduce the bundle size #45230
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
Conversation
165cafb to
7d62a12
Compare
|
FYI, adding "PullApprove: disable" since it's a patch-only version of already approved PR (#40962). |
7d62a12 to
e64c7db
Compare
|
@JiaLiPassion Can you retarget this for the |
bc8c43e to
9dc1e81
Compare
…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).
9dc1e81 to
d443cd3
Compare
|
@atscott , sure, I just rebased this PR to 13.3.x |
|
@JiaLiPassion Is this ready to be merged? |
|
@dylhunn , the |
|
No worries, thanks! |
|
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 is the same PR with #40962 for the
13.2.xpatch branch.Zone.js supports the google closure compiler in the advance optimization mode,
to prevent closure compiler modify the
onPropertyname such asElement.prototype.onclick,Zone.js implements the
onPropertypatch logic by declaring all theevent 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).