🐛 混淆前端打包后代码
This commit is contained in:
+14
-14
@@ -13,35 +13,35 @@ export default defineConfig({
|
|||||||
log: true,
|
log: true,
|
||||||
autoExcludeNodeModules: true,
|
autoExcludeNodeModules: true,
|
||||||
threadPool: true,
|
threadPool: true,
|
||||||
|
excludes: [
|
||||||
|
/assets\/rolldown-runtime-.*\.js$/,
|
||||||
|
],
|
||||||
options: {
|
options: {
|
||||||
compact: true,
|
compact: true,
|
||||||
controlFlowFlattening: true,
|
controlFlowFlattening: false,
|
||||||
controlFlowFlatteningThreshold: 1,
|
|
||||||
deadCodeInjection: false,
|
deadCodeInjection: false,
|
||||||
debugProtection: false,
|
debugProtection: false,
|
||||||
debugProtectionInterval: 0,
|
debugProtectionInterval: 0,
|
||||||
disableConsoleOutput: true,
|
disableConsoleOutput: true,
|
||||||
identifierNamesGenerator: 'hexadecimal',
|
identifierNamesGenerator: 'hexadecimal',
|
||||||
ignoreImports: true,
|
ignoreImports: true,
|
||||||
numbersToExpressions: true,
|
numbersToExpressions: false,
|
||||||
renameGlobals: false,
|
renameGlobals: false,
|
||||||
selfDefending: true,
|
selfDefending: false,
|
||||||
simplify: true,
|
simplify: true,
|
||||||
splitStrings: true,
|
splitStrings: false,
|
||||||
splitStringsChunkLength: 5,
|
|
||||||
stringArray: true,
|
stringArray: true,
|
||||||
stringArrayCallsTransform: true,
|
stringArrayCallsTransform: false,
|
||||||
stringArrayCallsTransformThreshold: 1,
|
stringArrayEncoding: [],
|
||||||
stringArrayEncoding: ['base64'],
|
|
||||||
stringArrayIndexShift: true,
|
stringArrayIndexShift: true,
|
||||||
stringArrayRotate: true,
|
stringArrayRotate: true,
|
||||||
stringArrayShuffle: true,
|
stringArrayShuffle: true,
|
||||||
stringArrayWrappersChainedCalls: true,
|
stringArrayWrappersChainedCalls: true,
|
||||||
stringArrayWrappersCount: 3,
|
stringArrayWrappersCount: 1,
|
||||||
stringArrayWrappersParametersMaxCount: 4,
|
stringArrayWrappersParametersMaxCount: 2,
|
||||||
stringArrayWrappersType: 'function',
|
stringArrayWrappersType: 'variable',
|
||||||
stringArrayThreshold: 1,
|
stringArrayThreshold: 0.75,
|
||||||
transformObjectKeys: true,
|
transformObjectKeys: false,
|
||||||
unicodeEscapeSequence: false,
|
unicodeEscapeSequence: false,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user