Closed
Description
Which @ngrx/* package(s) are relevant/related to the feature request?
component-store, entity, router-store, store
Information
The packages have a bunch of run-time warnings, guarded by Angular's isDevMode()
check. While this guard suppresses respective warnings at run time, the related code is still included in the generated bundles.
Angular's own approach for this is using the global ngDevMode
constant, that is replaced with a concrete value at compile time (by webpack), and allows to eliminate the dev code from the resulting prod bundle.
It would be nice to have the same optimization for NgRx.
Describe any alternatives/workarounds you're currently using
No response
I would be willing to submit a PR to fix this issue
- Yes
- No