Replies: 3 comments 4 replies
-
https://electron-vite.org/guide/dev#limitations-of-sandboxing |
Beta Was this translation helpful? Give feedback.
-
I had this issue with an ESM project trying to get the app to work when sandboxing was enabled. I fixed it by switching the output format of the preload to CJS. The following works when
Don't forget to change the reference to your preload as it will now end with I think the docs section below should be changed to mention using a CJS preload in order to preserve sandboxing: |
Beta Was this translation helpful? Give feedback.
-
@goosewobbler, do you know how to use : preload: { with nuxt-electron which use vite-plugin-electron ? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm just wondering if there's any way to use electron-vite with sandbox: true.
It seems like in all versions sandbox is set to false by default. I understand this does introduce some security vulnerabilities.
I'm trying to figure out if I can get just the default app to load while using sandbox I've tried a few different configurations but it seems like the screen components do not load.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions