Fix issue with electron-store
This allows to use electron-store V10 inside the Renderer. Resolves #86
Hey @caoxiemeihao! Sorry for tagging you, this is a bit a random PR but I have been experiencing an issue with electron store and this solved the issue for me. Do you see any problem with this solution?
Thank you 🙏
@caoxiemeihao poke :)
@pelletier197 ah if we also add BrowserWindow, would that fix https://github.com/electron-vite/vite-plugin-electron-renderer/issues/88 as well?
Good question. Maybe, but i'm not sure BrowserWindow is supposed to be exposed in the renderer process. Maybe @caoxiemeihao would know ?
@Stanzilla @pelletier197 Sorry! I've been busy lately and I noticed this problem. Perhaps we can list the modules exported by the Main process more completely. This will be more compatible.
Also, could you change the target branch to v0.14.6? This will be the next release.