I often have some ideas to validate in Playground
But Playground just compiles the ReScript code into JavaScript
I need to see the results of the code running
and the compiled JS code usually depends on the stdlib API
So, I couldn’t copy the JS code directly to the Console for execution
because of the lack of these dependencies
Is it possible to support Run and Log in Playgrounds, like TS Playground
Hi, author here! It’s currently blocked by a few things:
My spare time but anyone should feel free to build on the PR
The proposed approach where code is executed in a worker is blocked by a next.js bug (details in the PR)
There is also some more engineering to be done in figuring out how to load ReScript stdlib modules in the worker, but this seems doable from the conversations I’ve had.
i’d also be keen on pushing this forward, since I have been neglecting the playground improvements for the longest time. The second half of this year has been quite busy, but I am sure we will get this done at some point