tone back obfuscation.

This commit is contained in:
Heidi
2026-05-16 10:19:52 +01:00
parent 28bd265323
commit 61b69c136a
+7 -15
View File
@@ -6,32 +6,24 @@ import obfuscatorPlugin from 'rollup-plugin-obfuscator'
const OBFUSCATOR_OPTIONS = { const OBFUSCATOR_OPTIONS = {
compact: true, compact: true,
controlFlowFlattening: true, controlFlowFlattening: false,
controlFlowFlatteningThreshold: 0.75, deadCodeInjection: false,
deadCodeInjection: true,
deadCodeInjectionThreshold: 0.4,
debugProtection: false, debugProtection: false,
disableConsoleOutput: false, disableConsoleOutput: false,
identifierNamesGenerator: 'hexadecimal', identifierNamesGenerator: 'hexadecimal',
log: false, log: false,
numbersToExpressions: true, numbersToExpressions: false,
renameGlobals: false, renameGlobals: false,
selfDefending: true, selfDefending: false,
simplify: true, simplify: true,
splitStrings: true, splitStrings: false,
splitStringsChunkLength: 10,
stringArray: true, stringArray: true,
stringArrayCallsTransform: true, stringArrayCallsTransform: false,
stringArrayEncoding: ['base64'], stringArrayEncoding: ['base64'],
stringArrayIndexShift: true,
stringArrayRotate: true, stringArrayRotate: true,
stringArrayShuffle: true, stringArrayShuffle: true,
stringArrayWrappersCount: 2,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 4,
stringArrayWrappersType: 'function',
stringArrayThreshold: 0.75, stringArrayThreshold: 0.75,
transformObjectKeys: true, transformObjectKeys: false,
unicodeEscapeSequence: false, unicodeEscapeSequence: false,
} }