[Resolved]Can not found third-party module in render process when loadURL with protocol http


I have tested two ways, one use http protocol loadurl, in render process, require third-party module(eg, sqlite3) will report ‘module not found’. But with the file protocol, it is normal.

How can i fix this when use http protocol?
Thanks very much!

Apologize for my poor English!


After browser the previous topics, now I clear that Electron‘s original design intention.
If you loadURL via http protocol, you will lose the ability that require third-party node module in Electron render processes.