react-proptype-conditional-require icon indicating copy to clipboard operation
react-proptype-conditional-require copied to clipboard

Production build

Open satazor opened this issue 6 years ago • 0 comments
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.

satazor avatar Nov 21 '18 17:11 satazor