As far as I can tell, OCaml does not currently have a reliable way to be turned into Web Assembly. There seem to be a few projects for this, but none seem active: