Those are good links to interesting discussions on the topic, I guess UglifyJS is better than nothing although you're right there.
Are you aware of any alternative that can do tree shaking? Reading those issues' comments there is a link to babel-webpack-tree-shaking [1] which seems to do it?
[1] https://github.com/Aladdin-ADD/babel-webpack-tree-shaking