perf(animations): made errors in the animations package tree shakeable#45004
perf(animations): made errors in the animations package tree shakeable#45004jessicajaniuk wants to merge 1 commit intoangular:masterfrom
Conversation
d497cfc to
4ccac76
Compare
4ccac76 to
7e6b24d
Compare
ae1e194 to
56faf8a
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
LGTM, just some minor comments.
I think we'd need to add golden files for the error codes as well, see #44677, so that they are a part of the public API.
packages/animations/browser/src/dsl/animation_transition_expr.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/dsl/animation_transition_expr.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/animation_engine_next.ts
Outdated
Show resolved
Hide resolved
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: size-tracking
ff21856 to
d34b088
Compare
There was a problem hiding this comment.
Is there value in tracking these signatures from a public API perspective?
In other "error" API tests that we have, we only really care about the error codes, not the helper functions that create those errors.
There was a problem hiding this comment.
I think I could move the helper functions and only have the codes exposed.
There was a problem hiding this comment.
They are now moved.
d34b088 to
05b34c7
Compare
This moves all the error strings into exported functions that can be tree shaken away.
05b34c7 to
0d8a2aa
Compare
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: size-tracking
|
This PR doesn't apply cleanly to 13.2.x. Marking it as |
|
This PR was merged into the repository by commit 4c778cd. |
|
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. |
angular#45004) This moves all the error strings into exported functions that can be tree shaken away. PR Close angular#45004
This moves all the error strings into exported functions that can be tree shaken away.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Errors in the animations code base are just defined all inline and affect bundle size.
Issue Number: N/A
What is the new behavior?
Errors are centralized in one file and should be tree shakeable.
Does this PR introduce a breaking change?
Other information