invariant
invariant copied to clipboard
invariant
Es modules are supported in [86%](https://caniuse.com/#feat=es6-module) of browsers, and this library is used by major web libraries|frameworks. I have stumbled open this issue while working on experiment in https://next.plnkr.co/edit/8lukaUKTSzv6HOn5 I...
I could build "invariant" package successfully from master , however 1 test case is failing with error : ``` $ npm install $ npm test `> [email protected] test /root/invariant >...
It'd be useful if the README referred to [babel-plugin-dev-expression](https://github.com/4Catalyzer/babel-plugin-dev-expression), or similar, as the way to actually strip out the messages passed to `invariant` when `NODE_ENV=production`. As it is, the [source](https://github.com/zertosh/invariant/blob/master/invariant.js#L19-L20)...
Using invariant imported with the following two patterns fails opposite depending on how we run the build (either as unit-tests under jest, or as a react-native view on android). ```typescript...
A value of `0` will throw an error, it should not
I think that "InvariantViolation" would be a more idiomatic name for this Error. https://developer.mozilla.org/pl/docs/Web/JavaScript/Referencje/Obiekty/Error/name Maybe instead of using framesToPop you could use a name of error to pop frames from...