JavaScript Minifier

Minify JavaScript by removing comments and unneeded whitespace.

This conservative minifier keeps token spacing and line breaks. From a template literal or an ambiguous slash onward, code is preserved unchanged. It does not validate JavaScript or replace a full parser-based minifier.