janestreet / bonsai

A library for building dynamic webapps, using Js_of_ocaml
MIT License
367 stars 39 forks source link

fix: allow open source rpc chat example to compile #32

Closed askvortsov1 closed 1 year ago

askvortsov1 commented 1 year ago

I'm assuming things work different with the internal build system, but the public release of dune needs this directive to output JavaScript. Also, without this, there's an error on use of any Virtual_dom:

File "_none_", line 1:             
Error: No implementations provided for the following modules:
         Ojs referenced from /home/askvortsov/.opam/janestreet-stable/lib/virtual_dom/virtual_dom.cmxa(Virtual_dom__Js_map),
           /home/askvortsov/.opam/janestreet-stable/lib/virtual_dom/virtual_dom.cmxa(Virtual_dom__Raw),
           /home/askvortsov/.opam/janestreet-stable/lib/virtual_dom/virtual_dom.cmxa(Virtual_dom__Attr)