Stream: beginners

Topic: How to compile to WASM target


view this post on Zulip Damian Reeves (May 19 2024 at 20:07):

I went through the tutorial but when I try and explore on my own and target WebAssembly I get an error specifying Wasm as my target. What are the additional steps we need to do in order to target Wasm?

view this post on Zulip Anton (May 20 2024 at 11:42):

If you are using basic-cli, it does not support wasm because it contains functions to handle dirs and files etc.
Some platforms that do support wasm:
https://github.com/roc-lang/roc/blob/main/examples/platform-switching/rocLovesWebAssembly.roc
https://github.com/lukewilliamboswell/roc-wasm4


Last updated: Jul 06 2025 at 12:14 UTC