$ npm install bloody-strip-invariant
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)
$ babel --plugins bloody-strip-invariant source.js