-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello everyone, I completed the configuration as follows.
`const opoptions = {
compact: true,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 0.75,
deadCodeInjection: true,
deadCodeInjectionThreshold: 0.4,
debugProtection: true,
debugProtectionInterval: 2000,
disableConsoleOutput: true,
// domainLock: [],
domainLockRedirectUrl: "about:blank",
// forceTransformStrings: [],
identifierNamesCache: null,
identifierNamesGenerator: "hexadecimal",
// identifiersDictionary: [],
// identifiersPrefix: "",
// ignoreImports: false,
inputFileName: "Fiyuva",
// log: false,
numbersToExpressions: true,
optionsPreset: "high-obfuscation",
renameGlobals: true,
renameProperties: true,
renamePropertiesMode: "safe",
// reservedNames: [],
// reservedStrings: [],
// seed: 0,
selfDefending: true,
simplify: true,
sourceMap: true,
// sourceMapBaseUrl: "",
// sourceMapFileName: "",
sourceMapMode: "separate",
sourceMapSourcesMode: "sources-content",
splitStrings: true,
splitStringsChunkLength: 10,
stringArray: true,
stringArrayCallsTransform: true,
stringArrayCallsTransformThreshold: 0.75,
stringArrayEncoding: ["rc4"],
stringArrayIndexesType: ["hexadecimal-number"],
stringArrayIndexShift: true,
stringArrayRotate: true,
stringArrayShuffle: true,
stringArrayWrappersCount: 2,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 4,
stringArrayWrappersType: "function",
stringArrayThreshold: 0.75,
target: "browser",
transformObjectKeys: true,
unicodeEscapeSequence: false
};
plugins: [
obfuscatorPlugin({
include: [/.(js|ts|cjs|mjs)$/],
exclude: [/node_modules/, /.nuxt/],
debugger: true,
options: { opoptions }
})
`
Plugins are of course also included for Vite.
When I code this way, I get the following error and I don't know how to solve this error. Can you help me?
