NoCustomNodes.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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 NO_ADDITIONAL_NODES_PRESET: TInputOptions = Object.freeze({
  6. compact: true,
  7. controlFlowFlattening: false,
  8. controlFlowFlatteningThreshold: 0,
  9. deadCodeInjection: false,
  10. deadCodeInjectionThreshold: 0,
  11. debugProtection: false,
  12. debugProtectionInterval: false,
  13. disableConsoleOutput: false,
  14. domainLock: [],
  15. identifierNamesGenerator: IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
  16. identifiersPrefix: '',
  17. log: false,
  18. renameGlobals: false,
  19. reservedNames: [],
  20. rotateStringArray: false,
  21. seed: 0,
  22. selfDefending: false,
  23. sourceMap: false,
  24. sourceMapBaseUrl: '',
  25. sourceMapFileName: '',
  26. sourceMapMode: SourceMapMode.Separate,
  27. stringArray: false,
  28. stringArrayEncoding: false,
  29. stringArrayThreshold: 0,
  30. target: ObfuscationTarget.Browser,
  31. transformObjectKeys: false,
  32. unicodeEscapeSequence: false
  33. });