Still, I want to minify and obfuscate the source to reduce bundle size. In essence, this is a build step. What's the best way to Node.js package to do this in 2022 that doesn't address 20 other problems like module bundling and TypeScript compilation?
If you want something more advanced, well a lot of details depend on the project, but one consideration is to handle this at the start of your project by looking for some boilerplate website script that just handles minification and a few other common tasks, and starting off with that as the starting base for your project. Besides just Googling or searching Github, maybe Yeoman is a good place to look for something suitable like this.
esbuild does also include support for bundling and TS compilation and the like, but it’s still faster than just about anything written in JS for just minification AFAIK