From 338c3d9882dfb65828720417b0d877504dfb5b43 Mon Sep 17 00:00:00 2001 From: Xavier Abad Date: Wed, 27 May 2026 09:42:24 +0200 Subject: [PATCH 1/2] ci: simplify obfuscation process --- vite.config.mts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/vite.config.mts b/vite.config.mts index 9ea62fe91..d453f61ea 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -57,24 +57,22 @@ export default defineConfig({ enable: true, autoExcludeNodeModules: true, threadPool: true, + options: { compact: true, stringArray: true, - stringArrayThreshold: 1, - stringArrayCallsTransform: true, - stringArrayCallsTransformThreshold: 1, - stringArrayEncoding: ['base64', 'rc4'], - stringArrayIndexShift: true, + stringArrayThreshold: 0.6, + stringArrayEncoding: ['base64'], + stringArrayCallsTransform: false, stringArrayRotate: true, stringArrayShuffle: true, - stringArrayWrappersCount: 5, - stringArrayWrappersChainedCalls: true, - stringArrayWrappersParametersMaxCount: 5, - transformObjectKeys: true, + stringArrayIndexShift: true, + stringArrayWrappersCount: 2, + stringArrayWrappersChainedCalls: false, + transformObjectKeys: false, identifierNamesGenerator: 'hexadecimal', - splitStrings: true, - splitStringsChunkLength: 5, - unicodeEscapeSequence: true, + splitStrings: false, + unicodeEscapeSequence: false, }, }), ], From 675a288d54f7a93454aee668bab2feeb3fcac3c0 Mon Sep 17 00:00:00 2001 From: Xavier Abad Date: Wed, 27 May 2026 10:16:16 +0200 Subject: [PATCH 2/2] ci: obfuscate env variables --- vite.config.mts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vite.config.mts b/vite.config.mts index d453f61ea..e123986c9 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -60,19 +60,19 @@ export default defineConfig({ options: { compact: true, + identifierNamesGenerator: 'hexadecimal', stringArray: true, - stringArrayThreshold: 0.6, - stringArrayEncoding: ['base64'], - stringArrayCallsTransform: false, + stringArrayThreshold: 1, + stringArrayEncoding: ['rc4'], stringArrayRotate: true, stringArrayShuffle: true, stringArrayIndexShift: true, - stringArrayWrappersCount: 2, - stringArrayWrappersChainedCalls: false, + splitStrings: true, + splitStringsChunkLength: 8, + stringArrayCallsTransform: false, transformObjectKeys: false, - identifierNamesGenerator: 'hexadecimal', - splitStrings: false, unicodeEscapeSequence: false, + stringArrayWrappersCount: 2, }, }), ],