I’ve tried to use tsc-generated modules in Electron (on the renderer side). The compilation goes fine, but on runtime I get “ReferenceError: exports is not defined” error. Does it mean that Electron does not support CommonJS modules in the renderer? What kind of modules does “require” function support on the browser side? How can I use TypeScript modules in Electron?
Slightly late, but do you have an example? Dabbling in typescript lately, interested in poking at this.
Not sure if this will help or not.