Hacker News new | ask | show | jobs
by _benton 467 days ago
Golang is actually pretty easy to embed into JS/TS via wasm. See esbuild.
1 comments

Esbuild is distributed as a series of native executables that are selectively installed by looking at arch and platform. Although you can build esbuild in wasm (and that's what you use when you run it in the browser), what you actually run from .bin in the CLI is a native executable, not wasm.