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
@therealartti Thank you for your feedback. When minification is enabled, string protection has no effect. This is because string protection is based on character codes. However, modern minification tools, whether esbuild or terser, will restore the converted character codes, causing the protection to fail. electron-vite will throw a warning. In fact, minification has little effect on reducing bytecode size, so it is recommended not to enable minification when protecting strings.
Describe the bug
The protectedStrings option fails to find the wanted strings when build.minify is true. Removing minify: true fixes it.
Here's my electron.vite.config.js:
Enforcing the plugin ordering does not seem to help either:
Electron-Vite Version
2.0.0
Electron Version
28.2.4
Vite Version
5.1.4
Validations
The text was updated successfully, but these errors were encountered: