Skip to content

Identifier has already been declared with mangled option #568

@Exocomp

Description

@Exocomp

Version: 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions