Drops indentation, blank lines and whole-line // comments, preserving other JS bytes. Multiline strings, template literals and block comments are kept verbatim internally.
Signature
compact_js :: (text: string) -> string
assert(compact_js(" // note\n let url = 'https://x';\n") == "let url = 'https://x';\n");