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
When normal JS vars are on separate lines with missing semi-colons, they are left on separate lines, but when using template literals the line-break is removed resulting in broken JS.
JS in;
// template literals without semicolonsvarfoo=`Hello`foo=`world`// template literals with semicolonsvarfoo=`Hello`;foo=`world`;// Simple strings without semicolonsvarfoo='Hello'foo='world'
Yes and no; it was already reported over a year ago but got not response. As minify uses jsmin-php and as both are by the same original author and as there is more activity here, I hoped reporting in miniy would result in someone seeing it. That, at least, has been accomplished. Would appreciate your help! :-)
When normal JS vars are on separate lines with missing semi-colons, they are left on separate lines, but when using template literals the line-break is removed resulting in broken JS.
JS in;
JS out:
The text was updated successfully, but these errors were encountered: