Given that the last comment in this thread was back in March, it might have been missed that in April, Oracle Labs announced an official Java-to-WASM backend for GraalVM Native Image.
This is a significant development, as it effectively covers most (if not all) WebAssembly compilation use cases for Scala and other JVM languages, including JavaScript interoperability and, more importantly, enterprise-grade support.
This may also prompt a discussion about whether, in the future, we should use the official JVM-to-WASM compiler and redirect the resources currently dedicated to Scala-specific WASM compilers toward other areas of Scala development.
Yeah … that we don’t do. The compiler has dependencies on Java libraries, and we don’t support that. So for that, Graal may win. Not sure, though. It’s not clear how macros would work, since they must be called by reflection, and you can’t tell when you build the compiler which entry points you may have to call.