Are there any tools or forks of TypeScript to support public namespace obfuscation? I.e. to turn:
class MyUtil {
print(): void { ... }
}
Int
https://github.com/javascript-obfuscator/javascript-obfuscator
Plugins:
Webpack plugin: webpack-obfuscator Webpack loader: obfuscator-loader Gulp: gulp-javascript-obfuscator Grunt: grunt-contrib-obfuscator Rollup: rollup-plugin-javascript-obfuscator
NOTE:
Only obfuscate the code that belongs to you.
It is not recommended to obfuscate vendor scripts and polyfills, since the obfuscated code is 15-80% slower (depends on options) and the files are significantly larger.