NodeJS app protection — what about obfuscation?Answered

So, we are interested in licensing a NodeJS application, but your tutorial makes no mention of obfuscation.  Maybe this is obvious, but is it expected that developers using TA or TF with NodeJS would obfuscate the built code somehow?

My concern is if there is no code obfuscation, then a hacker could just find the logic gates that retrieve the license values and then remove / update them.  I mean, they could do reverse the obfuscation if they were really comitted, but I'm just wondering what your thoughts are on this aspect of packaging a NodeJS app.  Maybe it's a simple webpack directive?

Thanks!

Answer

There are a thousand ways to skin that cat. We recommend Terser or Uglify. But there are a ton more of good options of compressing your code.