moxystudio / react-with-moxy

MOXY's boilerplate to create isomorphic react applications
35 stars 10 forks source link

Add prepack #115

Open satazor opened 6 years ago

satazor commented 6 years ago
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.