Related to https://github.com/BuckleScript/bucklescript/issues/3817, currently for
type t = { x : int } [@@bs.deriving abstract]
It will generate both x
(with a deprecated warning) and xGet
type t = { x : int } [@@bs.deriving {abstract = light}]
It will generate x
only.
In next release, for the former, we will not generate deprecated x
getter any more, if you still rely on the deprecated behavior, please add a light mode in this release