Perhaps I’m more looking for a Vite plugin that simply removes any exports.
It shouldn’t be too difficult to remove sum from
export {
sum,
CounterMessage,
App,
}
This avoids the need for any changes on the ReScript side and effectively resolves the issue in the relevant problem space.