In Electron I use an iframe to embed my own HTML files. Yet, I cannot use Node.JS in them (“require is undefined”). Any ideas on how to fix this?
After looking into it some more, I found a solution:
All you have to do is
const require = parent.require;