4 ms·
Google Closure Compiler [1] can also perform dead code removal, but it requires extra work annotating all public APIs and naturally it can't cope with dynamic/i
by DCoder 11y ago
Google Closure Compiler [1] can also perform dead code removal, but it requires extra work annotating all public APIs and naturally it can't cope with dynamic/indirect calls.
[1]: https://developers.google.com/closure/compiler/ https://developers.google.com/closure/compiler/
- warfangle 11y agoSo does UglifyJS. At least, obviously dead code (e.g., if(false) {} )