bloody-strip-invariant
v1.0.3
Published
babel loader to make invariant calls lightweight in production
Downloads
7
Readme
strip-invariant
install
$ npm install bloody-strip-invariant
what it does
for production use, you don't need invariant
to have formatted messages.
invariant(
value != null,
"expected a value, got %s",
value
)
will be transformed into
invariant(value != null)
usage
$ babel --plugins bloody-strip-invariant source.js