TypeScript Obfuscation

后端 未结 3 1724
感情败类
感情败类 2021-02-12 12:52

Are there any tools or forks of TypeScript to support public namespace obfuscation? I.e. to turn:

class MyUtil {
   print(): void { ... }
}

Int

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-12 13:23

    I don't believe there is any reason to do this in TypeScript. You can instead use something like Closure Compiler to do the obfuscation on your JavaScript output. Specifically look into Closure's Advanced Compilation settings.

提交回复
热议问题