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
When I build the project using obfuscator and turn on stringArray and try to encode the string, the project cannot be accessed normally
#13020 #13023 I saw the above two issues and updated vite to 4.3.5,but did not solve the problem,Here is a minimal repro, using the same plugin as isue above
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
This is happening because the obfuscator replaces __VITE_PRELOAD__ to \x5f\x5f\x56\x49\x54\x45\x5f\x50\x52\x45\x4c\x4f\x41\x44\x5f\x5f when unicodeEscapeSequence is set to true.
As _ can be represented as /_|\\x5f|\\u0005f|\\u{0*5f}/(regex) in JS, I guess supporting this case will require much more computation.
Describe the bug
When I build the project using obfuscator and turn on stringArray and try to encode the string, the project cannot be accessed normally

#13020
#13023
I saw the above two issues and updated vite to 4.3.5,but did not solve the problem,Here is a minimal repro, using the same plugin as isue above
Reproduction
https://stackblitz.com/edit/vitejs-vite-tayyd2?file=vite.config.js
Steps to reproduce
Run
npm run build
Run
npm run preview
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: