Hi,
I'm looking into ways to evaluate JS code generated from Blockly. As of right now I just inject a script into the HTML of my electron app. However, I wanted a way to be able to start/stop the code from running so they can edit the code and rerun, as well as maintain security so that malicious code can't be executed. I noticed that the docs recommended JS Interpreter, which is sandboxed and allows for starting/stopping. However, I wanted to be able to import specific classes that I defined in a different JS file in my project. I inserted the files as modules in the HTML. I also wanted to be able to require('path'). There are also some other libraries which I import into the project HTML from online scripts. Is there a way to allow these specific objects to be used in JS Interpreter?
Thanks in advance!