How can I avoid nodeIntegration for preload in ESM project? #817
Unanswered
FunctionDJ
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project with
"type": "module",
in package.json and a small preload script with this being the transpiled output by electron-vite:Because of this ESM import, I currently require
nodeIntegration
on the window.If I could bundle the preload script, I could disable Node integration, but how?
Beta Was this translation helpful? Give feedback.
All reactions