We use -warn-error +32+27+26+110 (see docs) when building for production, so that during dev we can have unused variables but disallow them for production builds.
I'd like to make a PR to add support for this, I can think of 2 options:
- Add config to this plugin to pass args to the rescript command.
- Add config to this plugin to explicitly skip the rescript build, so that we can run it ourselves first without the plugin then running it again.
Do you have a preference, are there other options I haven't thought of, or can we already achieve what we need without any changes to the plugin?
Thanks!