Javascript – Run CommonJS code in ESM Module using runInThisContext
A third party dependency returns a javascript code which I would like to execute using vm.runInThisContext. Unfortunately the javascript module systems missmatch as my script has to be EcmaScriptModule and the generated javascript code can only be generated as CommonJs.…