There are many minifiers such as terser and uglify. But, because minifying also require to parse the JS, it is actually possible to use esbuild and SWC to minify the code. Here's a benchmark of the main minifiers.
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.
I reduced an npm package size by 50% with minification
2 projects | dev.to | 27 Sep 2022
2 projects | news.ycombinator.com | 13 Sep 2022
2 projects | dev.to | 8 Aug 2022
You don't need void 0
1 project | dev.to | 10 May 2022
Writing your own module bundler
2 projects | dev.to | 16 Apr 2022
3 projects | reddit.com/r/u_tilepieces | 8 Apr 2022
introducing tilepieces: An open source project to visually editing HTML documents and Web applications
4 projects | dev.to | 6 Apr 2022
A note from our sponsor - Sonar
www.sonarsource.com | 26 Nov 2022