From 61b69c136ab9e7aff78fd1c6e875b800712f18d9 Mon Sep 17 00:00:00 2001 From: Heidi Date: Sat, 16 May 2026 10:19:52 +0100 Subject: [PATCH] tone back obfuscation. --- vite.config.js | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9305e87..a03d37e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,32 +6,24 @@ import obfuscatorPlugin from 'rollup-plugin-obfuscator' const OBFUSCATOR_OPTIONS = { compact: true, - controlFlowFlattening: true, - controlFlowFlatteningThreshold: 0.75, - deadCodeInjection: true, - deadCodeInjectionThreshold: 0.4, + controlFlowFlattening: false, + deadCodeInjection: false, debugProtection: false, disableConsoleOutput: false, identifierNamesGenerator: 'hexadecimal', log: false, - numbersToExpressions: true, + numbersToExpressions: false, renameGlobals: false, - selfDefending: true, + selfDefending: false, simplify: true, - splitStrings: true, - splitStringsChunkLength: 10, + splitStrings: false, stringArray: true, - stringArrayCallsTransform: true, + stringArrayCallsTransform: false, stringArrayEncoding: ['base64'], - stringArrayIndexShift: true, stringArrayRotate: true, stringArrayShuffle: true, - stringArrayWrappersCount: 2, - stringArrayWrappersChainedCalls: true, - stringArrayWrappersParametersMaxCount: 4, - stringArrayWrappersType: 'function', stringArrayThreshold: 0.75, - transformObjectKeys: true, + transformObjectKeys: false, unicodeEscapeSequence: false, }