Side note, but something supporting this type of workflow more first class (generate code from ReScript source) is in the cards for v12+ and something we care about getting right.
We’ll talk more about this in a little while, but in a nutshell we want to make it easy to hook into the build system and generate ReScript code from ReScript sources, in a first class way. No need to orchestrate a watcher etc yourself. Kind of like a PPX but without rewriting the source. More about this in a while!