You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When sandboxing is enabled, we can't require() an external module in the preload script. The current config bundles up all local files so that we can split our preload source code into multiple files (nice 👍). But it would be awesome if we could also use 3rd party modules such as electron-better-ipc inside our preload script while in sandbox mode.
Describe the solution you'd like
Bundle 3rd party dependencies in the preload script output, similar to how we're bundling our local source code.
Describe alternatives you've considered
Disabling sandboxing is the only solution for now.
The text was updated successfully, but these errors were encountered:
Previously it works exacly as you described. But this led to numerous problems (#664, #655, #613), because there are a huge number of packages that he will not be able to fully bundle. Usually these are packages that depend on native APIs directly or transitively.
Is your feature request related to a problem? Please describe.
When sandboxing is enabled, we can't
require()
an external module in the preload script. The current config bundles up all local files so that we can split our preload source code into multiple files (nice 👍). But it would be awesome if we could also use 3rd party modules such aselectron-better-ipc
inside our preload script while in sandbox mode.Describe the solution you'd like
Bundle 3rd party dependencies in the preload script output, similar to how we're bundling our local source code.
Describe alternatives you've considered
Disabling sandboxing is the only solution for now.
The text was updated successfully, but these errors were encountered: