I am using Pug for a web page that I am building. At the end of a module I have a script. tag (the regular script tag cannot be used because it isn't compatible
I have the below command: uglifyjs main.js bar.js -m toplevel reserved=['$','addTo','exports'] -c --source-map -o out.js But it throws error: ERROR: EN
Is there a way to not mangle only one function name? A comment in the code would be easiest, but I guess this could be done by specifying a custom "nameCache"