Default.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { TInputOptions } from '../../types/options/TInputOptions';
  2. import { IdentifierNamesGenerator } from '../../enums/generators/identifier-names-generators/IdentifierNamesGenerator';
  3. import { ObfuscationTarget } from '../../enums/ObfuscationTarget';
  4. import { SourceMapMode } from '../../enums/source-map/SourceMapMode';
  5. export const DEFAULT_PRESET: TInputOptions = Object.freeze({
  6. compact: true,
  7. config: '',
  8. controlFlowFlattening: false,
  9. controlFlowFlatteningThreshold: 0.75,
  10. deadCodeInjection: false,
  11. deadCodeInjectionThreshold: 0.4,
  12. debugProtection: false,
  13. debugProtectionInterval: false,
  14. disableConsoleOutput: false,
  15. domainLock: [],
  16. exclude: [],
  17. identifierNamesGenerator: IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
  18. identifiersPrefix: '',
  19. log: false,
  20. renameGlobals: false,
  21. reservedNames: [],
  22. rotateStringArray: true,
  23. seed: 0,
  24. selfDefending: false,
  25. sourceMap: false,
  26. sourceMapBaseUrl: '',
  27. sourceMapFileName: '',
  28. sourceMapMode: SourceMapMode.Separate,
  29. stringArray: true,
  30. stringArrayEncoding: false,
  31. stringArrayThreshold: 0.75,
  32. target: ObfuscationTarget.Browser,
  33. transformObjectKeys: false,
  34. unicodeEscapeSequence: false
  35. });