Identifier has already been declared with mangled option
See original GitHub issueVersion: 0.25.2 Angular: 9
Options:
identifierNamesGenerator: 'mangled',
stringArray: true,
rotateStringArray: true,
shuffleStringArray: true,
selfDefending: true,
Using it with a fairly decent sized angular project that uses multiple bundles I’m running into the following errors when using the “mangled” option:
Uncaught SyntaxError: Identifier 'a' has already been declared
I also tried the “dictionary” option with a supplied list of identifiersDictionary while the obfuscate command succeeds it still fails at runtime with a “Identifier ‘xxx’ has already been declared”. However, its intermittent some builds work while other times fails.
Using “hexadecimal” works however it has a pretty big footprint. For example, a 500Kb gz gets to about 950 gz with hexadecimal.
Anyway the “mangled” option generator can be optimized?
Issue Analytics
- State:
- Created 4 years ago
- Comments:26 (14 by maintainers)
Top Results From Across the Web
Uncaught SyntaxError: Identifier 'myOptions' has already been ...
The code of the script I have attached below. When I use var for declaring myOptions and myGlobals objects, the script runs without...
Read more >Identifier "x" has already been declared" - Ep 11 - YouTube
JS Casts 11 - How to fix "Uncaught SyntaxError: Identifier "x" has already been declared " in JavaScript.
Read more >ARM Compiler Errors and Warnings Reference Guide Version ...
The ARM Compiler Errors and Warnings Reference Guide provides lists of the errors and warnings that each of the compilation tools can generate....
Read more >terser - npm
When mangling is enabled but you want to prevent certain names from being mangled, you can declare those names with --mangle reserved —...
Read more >compilation error "i" has already been declared in the current ...
Reporter. Description. •. 19 years ago. User-Agent: Mozilla/5.0 (X11; U; IRIX64 IP35; en-US; rv:1.7) Gecko/20040617 Build Identifier: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will check it. Also, should update all plugins (webpack, gulp, grunt) to generate prefix for different bundles. Also, should describe it in the README.md
sanex3339 at yandex.ru