DefaultPreset.ts 672 B

1234567891011121314151617181920212223
  1. import { IObfuscatorOptions } from "../interfaces/IObfuscatorOptions";
  2. import { SourceMapMode } from "../enums/SourceMapMode";
  3. export const DEFAULT_PRESET: IObfuscatorOptions = Object.freeze({
  4. compact: true,
  5. debugProtection: false,
  6. debugProtectionInterval: false,
  7. disableConsoleOutput: true,
  8. domainLock: [],
  9. encodeUnicodeLiterals: false,
  10. optimize: true,
  11. reservedNames: [],
  12. rotateUnicodeArray: true,
  13. selfDefending: true,
  14. sourceMap: false,
  15. sourceMapBaseUrl: '',
  16. sourceMapFileName: '',
  17. sourceMapMode: SourceMapMode.Separate,
  18. unicodeArray: true,
  19. unicodeArrayThreshold: 0.8,
  20. wrapUnicodeArrayCalls: true
  21. });