News for hackers. Stuff that matters.
Re:JavaScript Minification Benchmarks by randomfool on Saturday February 06, 2021 @02:42PM (#26049247)
Google Closure's advanced optimizations require annotations throughout your codebase- in many codebases it may require significant effort to get this working. When you need that extra optimization it's great but can be a lot of effort otherwise.

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.

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.
Re:JavaScript Minification Benchmarks by lenz2020 on Monday February 08, 2021 @02:29PM (#26068977)
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).