Use ngDevMode to tree shake error messages in pipes
See original GitHub issue🚀 feature request
Description
Currently all the errors throwed by pipes are not being tree-shaked in production mode.
Relevant Package
@angular/common/(pipes)
Describe the solution you’d like
I have seen that you made a lot of progress with ngDevMode
, so I think it would be a case of using it for the purpose of making the package smaller.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Angular tree shaking not stripping dev code, what things ...
I tried using that exact code in my app, but the dev code is still there in a production build. I copied the...
Read more >What's new in Angular 11? - Reseller News
To improve router performance, ngDevMode can be used to tree-shake error messages. For service-worker, an UnrecoverableStateError ...
Read more >What's new in Angular 11? - ARN
To improve router performance, ngDevMode can be used to tree-shake error messages. For service-worker, an UnrecoverableStateError notification is being ...
Read more >What's new in Angular 11 | InfoWorld
To improve router performance, ngDevMode can be used to tree-shake error messages. For service-worker, an UnrecoverableStateError ...
Read more >Angular 11 Officially Released!. Compiler, routes, supports. Just ...
Paying attention also to router performance, ngDevMode can be used to tree-shake error messages and the type of parameter in “navigateByUrl” and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually never mind, I just noticed that the check in https://github.com/angular/angular/blob/884f743baa667ee5b62d67c3fb9dabab1b03d2d8/packages/common/src/pipes/case_conversion_pipes.ts#L36 is using double
=
and not triple.So you are right 😊
Great @AndrewKushnir, I’ll raise a PR on this. 👍