Open
Description
Is your feature request related to a problem? Please describe.
We currently support emitting Wasm via Scala.js, but we do not yet integrate it with Scala CLI features.
Describe the solution you'd like
I'd like to be able to run Scala code with Wasm directly from Scala CLI.
Additionally, I'd like to be able to choose a runtime and let Scala CLI download it for me.
Unsure which runtimes should be supported, + we should likely have a default.
- support running Wasm from Scala CLI
- a CLI flag
--wasm
- a corresponding directive, likely a
wasm
param for theplatform
directive
- a CLI flag
- allow to pick a Wasm runtime + have a default
- command line option
- directive
- consider Wasm for other Scala CLI features (likely out of scope) and create follow-up issues
Additional context
- initial support for WASM: Support Scala.js 1.17.0 and targeting WASM #3213