Skip to content

bloodyowl/strip-invariant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strip-invariant

Build Status

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

About

babel loader to make invariant calls lightweight in production

Resources

License

Stars

Watchers

Forks

Packages

No packages published