Closed snooopcatt closed 6 years ago
First of all this plugin is a thin wrapper around uglifyjs project which doesn't add any functionality.
From what you described the output of uglify is correct and the problem is introduced actually by your obfuscator. I would suggest to drop it. Business requirements are not competent here.
Or as a workaround just transpile your code with babel before uglifying, so uglify could mangle names according es5 behaviour.
Hello. We have a name collision when uglifying rolled up code. This a snippet, causing problems:
It gets uglified to (I took liberty to add some spaces for readability):
If you look closely, there are 2 n variables declared. While this is allowed with
let
, it causes troubles when this code gets processed by javascript-obfuscator, which replaces let with var.Can you please look into that and maybe avoid such possible collisions?