electron-toolkit
electron-toolkit copied to clipboard
当开启ESM并且关闭contextIsolation时electronAPI的内容是无效的
Describe the bug
···
window.electron = electronAPI
console.log(electronAPI)
···
Electron-Toolkit Version
3.0.0
Electron Version
34.2.0
Validations
- [x] Follow the Code of Conduct.
- [x] Read the Contributing Guidelines.
- [x] Read the docs.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
问题原因分析: https://github.com/electron/electron/issues/46142 https://blog.hetao.me/2025/03/19/electron%e4%bd%bf%e7%94%a8esm%e7%9a%84%e5%9d%91/