Electron 12+ 出现 require is not defined 报错解决

📝

内容提要

在 Electron 12 及更高版本,设置了nodeIntegration: true及nodeIntegrationInWorker: true、nodeIntegrationInSubframes: true,渲染进程仍然可能出现require is not defined的报错。这个报错还跟随有module is not defined或exports is not...

➡️

继续阅读