You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default parameters that aren't used by the bundle can be removed.
Version (complete output of terser -V or specific git commit)
5.13.1
Complete CLI command or minify() options used
terser file.js --module --compress (Also tested using default configuration at https://try.terser.org/)
terser input
file.js:
constinternalAdd=(a,b)=>(a==='0' ? b : a+b);// should not appear in bundleconstaddAndLog=(a,b,impl=internalAdd)=>console.log(impl(a,b));constmyAdd=(a,b)=>a+b;addAndLog(1,2,myAdd);// => 3
Feature request
Default parameters that aren't used by the bundle can be removed.
Version (complete output of
terser -V
or specific git commit)5.13.1
Complete CLI command or
minify()
options usedterser file.js --module --compress
(Also tested using default configuration at https://try.terser.org/)terser
inputfile.js
:terser
output or errorExpected result
Expected result should be equivalent to the result for this input:
Result:
The text was updated successfully, but these errors were encountered: