Category "uglifyjs"

How to use uglifyjs 3 mangle option with toplevel and reserverd?

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

Terser keep (don't mangle) a specific function name

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"