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
In TypeScript, it's frequently convenient to write an identity function to simplify type conversions.
Unfortunately, the definitions and calls continue to remain after invoking Terser.
Is it possible to get Terser to optimize this case?
Version (complete output of terser -V or specific git commit)
4.4.0
Feature request
In TypeScript, it's frequently convenient to write an identity function to simplify type conversions.
Unfortunately, the definitions and calls continue to remain after invoking Terser.
Is it possible to get Terser to optimize this case?
Version (complete output of
terser -V
or specific git commit)4.4.0
Complete CLI command or
minify()
options usedAlso tried explicitly setting
inline
:terser
inputterser
output or errorExpected result
or even:
The text was updated successfully, but these errors were encountered: