I am playing around with trying to use ReScript in Svelte, and so I was wondering: is there was a JavaScript API which I can call, that takes ReScript and returns the compiled JS?
At its simplest form, something like:
let javascript = ReScript.compile(input);
Where input
is a string with the ReScript to compile.
Such a JS API would be used in the Svelte pre-processor I’m setting up.