angular/packages/animations
Charles Lyding 3cb1f18f97 fix(animations): add pure annotations to static property initializers (#43064)
Class static properties with initializers that cause code execution (for example, call expressions or new expressions) have the potential to cause side effects at module evaluation. This is similar in effect to module level code. As a result, optimizers can not safely remove a class with such a static property as the potential side effects may have meaningful effects on the state of the application execution. To allow classes with these type of static properties to be optimized and removed if unused, the initializer expressions for the static properties can be annotated as pure. This annotation provides a signal to an optimizer that the expression does not have any potential side effects and is useful in cases where static analysis can not currently prove that there are, in fact, no side effects caused by the initializer.

PR Close #43064
2021-08-16 17:20:21 -07:00
..
browser fix(animations): add pure annotations to static property initializers (#43064) 2021-08-16 17:20:21 -07:00
src fix(platform-browser): update started state on reset (#41608) 2021-05-25 20:28:41 +00:00
test fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
BUILD.bazel build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
PACKAGE.md build(docs-infra): implement the 'package' API template (#24631) 2018-07-13 19:45:54 -04:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00