It’s not really an issue with them being compiled frameworks, the issue is that they have unique file formats and structures (.svelte and .vue). These files are a mix of JS, HTML, and CSS. The JS in these files has to be JS, so you can’t just drop in ReScript.
What you can do is use ReScript for external JS that is imported into these unique files.