Hi!
I'm not sure if this constitutes a bug or not, as I haven't seen a proper error yet, only a warning from SizeLimitsPlugin:
Error parsing bundle asset "/workspace/frontend/dist/js/app-bundle-9144a3e50714133abf44.js": Identifier 'k' has already been declared (1:3083)
Expected Behavior
The identifierNamesGenerator should produce unique identifiers within the same scope.
Current Behavior
Notice two k identifiers bellow:
const k = function() {
let H = !![];
return function(I, J) {
const K = H ? function() {
if (J) {
const L = J[b('0x56')](I, arguments);
J = null;
return L;
}
} : function() {};
H = ![];
return K;
};
}();
function k(M) {
const hk = f(this, function() {
.....
Steps to Reproduce
I'm using [email protected] with the following options:
const OBFUSCATOR_OPTIONS = {
seed: 1984,
selfDefending: true,
identifierNamesGenerator: 'mangled',
domainLock: ['example.local', 'example.com'],
};
Your Environment
- Obfuscator version used: 0.24.6
- Node version used: 10.17.0
Thanks for the all the hard work on this project!
Hi!
I'm not sure if this constitutes a bug or not, as I haven't seen a proper error yet, only a warning from
SizeLimitsPlugin:Error parsing bundle asset "/workspace/frontend/dist/js/app-bundle-9144a3e50714133abf44.js": Identifier 'k' has already been declared (1:3083)Expected Behavior
The
identifierNamesGeneratorshould produce unique identifiers within the same scope.Current Behavior
Notice two
kidentifiers bellow:Steps to Reproduce
I'm using
[email protected]with the following options:Your Environment
Thanks for the all the hard work on this project!