Thanks.
We should make it probably clearer on the documentation, I will open an issue. For now let me try to draft some requisites from the top of my head.
Making a library “melange ready” there are the following rules:
- To have all dependencies modes melange
- To have dune 3.1 and OCaml 5.0/5.1 (depending on Melange’s version)
- Don’t rely on system dependencies (similar on jsoo)
Having all dependencies modes melange is the biggest difference from jsoo, where you can add modes js
in your “entry” and all subsequent libraries will be compiled to js (ofc unless some system dependency is used and no shim is available).