Re:JavaScript Minification Benchmarks
by capableweb on Saturday February 06, 2021 @03:07PM
(#26049461)
> it may require significant effort to get this working
You're right, the author probably didn't provide externs and/or exports, so the tests fails. It's not really that much of an effort, especially if you're supposed to be testing the tool itself. Considering that the author is already testing libraries that have externs/exports written for them already, just shows the lack of care of the tests.
Re:JavaScript Minification Benchmarks
by newlisper on Saturday February 06, 2021 @03:53PM
(#26049830)
Google Closure is the best at minification but it's also the worst less pragmatic option for 99% of projects.
Actually no. You rarely need to annotate anything. They type checking is independent from the optimization of you turn off the type based optimizations. You still get good results. This doesn't get you away from the requirements for advanced optimizations (property use restrictions in particular).
I'm most excited about esbuild though and I'm curious how it'll fit into a larger codebase & ecosystem. The author is aggressive about keeping it simple (for good reason!!)- the focus on speed is awesome.