I just wanted to share that I ported over the C implementation of cjs-module-lexer to pure Go:
https://github.com/matthewmueller/cjslexer
I think it'd be nice to not have to shell out to another process and deploy esm.sh as a single binary.
Feel free to close this issue if not helpful!