Avoiding redeclarations #1315
Unanswered
richardgrimmett
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the JS Obfuscator extension (1.3.2) for Visual Studio (1.100.3). I cannot find a config setting to avoid redeclarations. I have +/- 60 js files. After minimising with JS Obfuscator i get errors like this when loading the js in the browser:
Uncaught SyntaxError: redeclaration of const _0x4110
and I have to rerun js obfuscator until I get a clean set.
Is there an easier way please?
Here is my settings.json
{
"git.enableSmartCommit": true,
"JSObfuscator.changeFileExtension": "min.js",
"JSObfuscator.overwriteExistingFiles": true,
"JSObfuscator.subPathInWorkspace": "js",
"JSObfuscator.javascript-obfuscator": {
"compact": true,
"controlFlowFlattening": true,
"deadCodeInjection": false,
"debugProtection": false,
"debugProtectionInterval": false,
"disableConsoleOutput": false,
"identifierNamesGenerator": "hexadecimal",
"log": false,
"renameGlobals": false,
"rotateStringArray": true,
"selfDefending": true,
"shuffleStringArray": true,
"splitStrings": false,
"stringArray": true,
"stringArrayEncoding": [
"none",
"base64",
"rc4"
],
"stringArrayThreshold": 0.75,
"unicodeEscapeSequence": false,
"target" : "browser-no-eval"
},
"chat.commandCenter.enabled": false
}
Beta Was this translation helpful? Give feedback.
All reactions