ml-in-barcelona / jsoo-react

js_of_ocaml bindings for ReactJS. Based on ReasonReact.
https://ml-in-barcelona.github.io/jsoo-react
MIT License
138 stars 19 forks source link

Use dune option ppx_runtime_libraries #86

Open jchavarri opened 2 years ago

jchavarri commented 2 years ago

There is a dune stanza ppx_runtime_libraries to include the runtime lib automatically.

Per dune docs:

(ppx_runtime_libraries (<library-names>)) is for when the library is a ppx rewriter or a [@@deriving ...] plugin and has runtime dependencies. You need to specify these runtime dependencies here

This would allow to get rid of (libraries jsoo-react.lib) (can update readme instructions as well)