react-proptype-conditional-require
react-proptype-conditional-require copied to clipboard
Production build
trafficstars
It would be awesome if this library was a no-op in production, similar to prop-types: https://github.com/facebook/prop-types/blob/11e45c433f439940a4a6fa280a4464ef449e8943/index.js#L8
The reasoning is two-fold: performance and small builds since webpack/uglify will remove dead-code if process.env.NODE_ENV gets inlined.