Based on this blogpost by the React team (@gaearon), we should look into replacing Uglify with Google Closure compiler.
We're already using ES modules and Rollup, so we're basically pretty far of the way there. The last step to get this into the realm of possibilities is shipping flat bundles, ref #1359.
Perhaps this PR will be helpful as a reference? https://github.com/facebook/react/pull/10236/files
I'll have a look at this one
This ends up being more trouble than it's worth. We'll get some nice bundle savings with the various improvements planned for 4.0