12345678910111213141516171819202122232425262728293031323334353637 |
- import { TInputOptions } from '../../types/options/TInputOptions';
- import { IdentifierNamesGenerator } from '../../enums/generators/identifier-names-generators/IdentifierNamesGenerator';
- import { ObfuscationTarget } from '../../enums/ObfuscationTarget';
- import { SourceMapMode } from '../../enums/source-map/SourceMapMode';
- export const DEFAULT_PRESET: TInputOptions = Object.freeze({
- compact: true,
- config: '',
- controlFlowFlattening: false,
- controlFlowFlatteningThreshold: 0.75,
- deadCodeInjection: false,
- deadCodeInjectionThreshold: 0.4,
- debugProtection: false,
- debugProtectionInterval: false,
- disableConsoleOutput: false,
- domainLock: [],
- exclude: [],
- identifierNamesGenerator: IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
- identifiersPrefix: '',
- log: false,
- renameGlobals: false,
- reservedNames: [],
- rotateStringArray: true,
- seed: 0,
- selfDefending: false,
- sourceMap: false,
- sourceMapBaseUrl: '',
- sourceMapFileName: '',
- sourceMapMode: SourceMapMode.Separate,
- stringArray: true,
- stringArrayEncoding: false,
- stringArrayThreshold: 0.75,
- target: ObfuscationTarget.Browser,
- transformObjectKeys: false,
- unicodeEscapeSequence: false
- });
|