Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoiding redeclarations#1315

Unanswered
richardgrimmett asked this question inQ&A
Discussion options

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
}

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@richardgrimmett

[8]ページ先頭

©2009-2025 Movatter.jp