From d878236465f0c2a592dd6a7001fc1dcb45e9b8cf Mon Sep 17 00:00:00 2001 From: SwapMarket <181500791+SwapMarket@users.noreply.github.com> Date: Wed, 7 May 2025 13:05:57 +0200 Subject: [PATCH] avoid CSP eval errors --- vite.config.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vite.config.mjs b/vite.config.mjs index 3b35fcb..548c8e2 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -15,17 +15,17 @@ const defaultObfuscatorConfig = { // threadPool: { enable: true, size: 4 } options: { compact: true, - controlFlowFlattening: true, + controlFlowFlattening: false, controlFlowFlatteningThreshold: 1, deadCodeInjection: false, - debugProtection: true, + debugProtection: false, debugProtectionInterval: 0, disableConsoleOutput: true, identifierNamesGenerator: 'hexadecimal', log: false, numbersToExpressions: false, - renameGlobals: true, - selfDefending: true, + renameGlobals: false, + selfDefending: false, simplify: true, splitStrings: true, stringArray: true, @@ -38,7 +38,7 @@ const defaultObfuscatorConfig = { stringArrayWrappersCount: 1, stringArrayWrappersChainedCalls: true, stringArrayWrappersParametersMaxCount: 2, - stringArrayWrappersType: 'variable', + stringArrayWrappersType: 'function', stringArrayThreshold: 0.75, unicodeEscapeSequence: false, }