There was a mention of using agents to build projects into WASM. I've had the best luck telling it to use zig to compile to webassembly. It shortens the time to completion by a significant amount.
It's not a great tip because there are features that exist specifically to reduce development iteration cycle latency without compiling for the wrong target.
You can "pip install ziglang" and get the right version for different platforms too.