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
Manglifier adds shorter names from destructing parameters (and it's good in most cases), however, it produces bigger code if these destruction parameters are used for shorthand object creation inside function body.
It's easier to show on example
As you may see style and width from parameters destructions are used only as shorthand properties inside function, so, adding renaming parameters d and g only added 6 bytes to resulted code without any benefits.
The text was updated successfully, but these errors were encountered:
Manglifier adds shorter names from destructing parameters (and it's good in most cases), however, it produces bigger code if these destruction parameters are used for shorthand object creation inside function body.
It's easier to show on example
Original source:
minifies into:
As you may see
style
andwidth
from parameters destructions are used only as shorthand properties inside function, so, adding renaming parametersd
andg
only added 6 bytes to resulted code without any benefits.The text was updated successfully, but these errors were encountered: