-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodeIntegration
breaks monaco-editor in React
#20
Comments
@caoxiemeihao Sorry, I missed this. I'll try to get around to this tomorrow. I don't need to use the Why is |
Vite does not provide a corresponding Electron pre-config. So /**
* @default false
*/
nodeIntegration?: boolean https://github.com/electron-vite/vite-plugin-electron-renderer/blob/v0.11.0/src/index.ts#L8-L11 |
In my app, if I enable:
Then after bundling, the
monaco-editor
causes the React app to completely re-mount and lose all its state.My best guess is that
monaco-editor
uses a Worker that detects Electron and fails. It has been almost impossible to debug.Any ideas?
The text was updated successfully, but these errors were encountered: