react-with-moxy
react-with-moxy copied to clipboard
Add prepack
const isDev = process.env.NODE_ENV === 'development';
if (isDev) {
doSomething('foo');
}
uglify will not handle this well, see: https://github.com/mishoo/UglifyJS2/issues/3110
But with prepack we can get rid of such dead code, plus more.