obfuscator-io-metro-plugin icon indicating copy to clipboard operation
obfuscator-io-metro-plugin copied to clipboard

All obfuscated code has "// Original name: XXX, environment: rX" making the obfuscation irrelevant

Open AlbertoMeQ opened this issue 1 year ago • 0 comments

Hello,

I am trying to use this code with React-Native (metro). I am using the following settings:

        compact: true,
        controlFlowFlattening: false,
        deadCodeInjection: false,
        debugProtection: false,
        debugProtectionInterval: 0,
        disableConsoleOutput: true,
        identifierNamesGenerator: 'mangled',
        rotateStringArray: true,
        shuffleStringArray: true,
        log: false,
        numbersToExpressions: false,
        renameGlobals: false,
        renameProperties: true,
        renamePropertiesMode: 'safe',
        selfDefending: true,
        simplify: true,
        splitStrings: false,
        stringArray: true,
        stringArrayCallsTransform: true,
        stringArrayEncoding: [],
        stringArrayIndexShift: true,
        stringArrayRotate: true,
        stringArrayShuffle: true,
        stringArrayWrappersCount: 1,
        stringArrayWrappersChainedCalls: true,
        stringArrayWrappersParametersMaxCount: 2,
        stringArrayWrappersType: 'variable',
        stringArrayThreshold: 0.75,
        unicodeEscapeSequence: false,

Why do I get code like this inside the index.bundle.js:

r4 = function(a0) { // Original name: metroRequire, environment: r2

Can I do something to remove all those comments?

AlbertoMeQ avatar Mar 24 '23 16:03 AlbertoMeQ