-
Notifications
You must be signed in to change notification settings - Fork 166
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
Default resolve condition "node" for preload causes incompatible node versions of modules to be loaded when nodeIntegration is disabled #204
Comments
@shayded-exe I'm also thinking about this. You can externalize it first( |
Disabling sandbox isn't an option for me. |
The next version will remove this condition for preload. |
@shayded-exe You can set |
@alex8088 That doesn't overwrite the value though. Vite's See here: |
new ver 1.0.25 is out! |
Thank you! 😃 |
Describe the bug
Preload should not have "node" set as a resolve condition by default, as there's no way to disable it because vite's
mergeConfig
will merge arrays.My preload uses the
uuid
module. Because of this condition, it bundles the node version module instead of the browser version, which breaks because it requires thecrypto
module and I have node integration disabled.Electron-Vite Version
1.0.24
Electron Version
22
Vite Version
4.1.1
Validations
The text was updated successfully, but these errors were encountered: