Is it possible to prevent console.log
and the like from being used at runtime by patching them using Webpack?
I know this could be done at runtime, and some obfuscators also seem to manage to do it via AST at compile time, but is there a standalone approach I could use in Webpack?
I've tried an obfuscator for this, but unfortunately it increases the size of our code by 20% just to disable console, which is more than all the obfuscation methods it uses for the rest of the code add. I don't know what's going on there, but so I'm wondering about a standalone approach.