One little hiccup - I wonder if there’s a decent way of working around this; I’ve started moving some shared types to the common library, but ReScript doesn’t like the yojson derivations on those types - is there a way to get RS to ignore them? Dune seems quite happy to ignore the [@@genType]s that it doesn’t understand :))
For example, the following snippet is accepted by Dune, but errors with ReScript’s compiler.
type MyType = A | B | C
This is because ReScript interprets any [@@deriving ...] PPX attribute as something it needs to process. Of course in the OCaml ecosystem the attribute is widely known to be reserved for use by specific deriving PPXs. So there is a conflict between them. I’m not sure how to get around that. Perhaps others have found a way.