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?
Node JS not working in embedded html file
Stijn
#2
After looking into it some more, I found a solution:
All you have to do is
const require = parent.require;
And done!