diff --git a/vite.config.ts b/vite.config.ts index 244faae..3ad325f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,35 +13,35 @@ export default defineConfig({ log: true, autoExcludeNodeModules: true, threadPool: true, + excludes: [ + /assets\/rolldown-runtime-.*\.js$/, + ], options: { compact: true, - controlFlowFlattening: true, - controlFlowFlatteningThreshold: 1, + controlFlowFlattening: false, deadCodeInjection: false, debugProtection: false, debugProtectionInterval: 0, disableConsoleOutput: true, identifierNamesGenerator: 'hexadecimal', ignoreImports: true, - numbersToExpressions: true, + numbersToExpressions: false, renameGlobals: false, - selfDefending: true, + selfDefending: false, simplify: true, - splitStrings: true, - splitStringsChunkLength: 5, + splitStrings: false, stringArray: true, - stringArrayCallsTransform: true, - stringArrayCallsTransformThreshold: 1, - stringArrayEncoding: ['base64'], + stringArrayCallsTransform: false, + stringArrayEncoding: [], stringArrayIndexShift: true, stringArrayRotate: true, stringArrayShuffle: true, stringArrayWrappersChainedCalls: true, - stringArrayWrappersCount: 3, - stringArrayWrappersParametersMaxCount: 4, - stringArrayWrappersType: 'function', - stringArrayThreshold: 1, - transformObjectKeys: true, + stringArrayWrappersCount: 1, + stringArrayWrappersParametersMaxCount: 2, + stringArrayWrappersType: 'variable', + stringArrayThreshold: 0.75, + transformObjectKeys: false, unicodeEscapeSequence: false, }, }),