It might be great to disable this when NODE_ENV is production.
obviously we can use something like strip-loader to accomplish that, but I see invariant is already having separate behavior for prod-mod, and maybe just not throwing would be nice.
@xjamundx invariants should never ever be false. If you want something that's disabled in production you could try warning instead (also a mirror of Facebook's warning).
It might be great to disable this when
NODE_ENV
isproduction
.obviously we can use something like
strip-loader
to accomplish that, but I see invariant is already having separate behavior for prod-mod, and maybe just not throwing would be nice.thoughts?