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: ENOENT: no such file or directory, open 'reserved=[$,addTo,exports]'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
How can I use both options toplevel (mangle function names) and reserved under -m option? I am using latest uglifyJs and node 8.6 .
This should work: