Content-Length: 257144 | pFad | http://github.com/angular/angular/pull/61488

1A refactor(forms): drop `resolvedPromise` by arturovt · Pull Request #61488 · angular/angular · GitHub
Skip to content

refactor(forms): drop resolvedPromise #61488

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

Closed

Conversation

arturovt
Copy link
Contributor

Adds __PURE__ annotations to resolvedPromise expressions to enable tree-shaking, even if they are not referenced. These variables are not dropped when Angular is imported from a module that has sideEffects set to true.

image

Adds `__PURE__` annotations to `resolvedPromise` expressions to enable tree-shaking, even if they are not referenced. These variables are not dropped when Angular is imported from a module that has `sideEffects` set to `true`.
@pullapprove pullapprove bot requested a review from atscott May 19, 2025 23:37
@ngbot ngbot bot added this to the Backlog milestone May 19, 2025
@thePunderWoman
Copy link
Contributor

Manually adding PURE annotations is unmaintainable for us in the long run and is unnecessary with the CLI. I'm going to close this, and we'll probably do similar with other manually added PURE annotations going forward.

@arturovt arturovt deleted the refactor/forms-drop-resolvedPromise branch May 21, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/61488

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy