TypeScript Obfuscation

后端 未结 3 1720
感情败类
感情败类 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 had the exact same question, and it was instantly deleted by SO.

    https://github.com/angular/ts-minify

    This is exactly the tool you (and I) are looking for, it seems to work pretty well, I needed to comment out a few parts where the the author was taking precautions I don't think are applicable.

提交回复
热议问题