Keep `terser` from changing function argument names

Let’s say there’s a function

function fname (arg1) {}

When terser minifies it, it changes both the function name and the argument names (by deafault)

I need to keep the argument name as is.
I’ve found a --keep_fnames option that solves the function rename, but I don’t see any option to keep arguments from being renamed.

10 thoughts on “Keep `terser` from changing function argument names”

Leave a Comment