There’s also the possibility of also writing the ReScript found in Svelte script tags to actual files, kind of like you describe @hellos3b.
Lots of possibilities. We can figure out a nice approach for all of this if there’s genuine interest (and action) in getting experimenting with all of this.