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 using back-ticks to define template literals, no spaces should be stripped.
Leading and trailing spaces as well as spaces around = (maybe other signs too) are however removed.
Un-minified code:
const string = ` This should be interpreted as normal string, and no space should be removed. Even if there is an = sign. `;
alert(string);
Minified code:
const string=`This should be interpreted as normal string,and no space should be removed.Even if there is an=sign.`;alert(string);
Expected minified code:
const string=` This should be interpreted as normal string, and no space should be removed. Even if there is an = sign. `;alert(string);
When using variables, spaces after variables are removed while space before them are left
Un-minified code:
const word = 'This';
const string = ` ${word} should be interpreted as normal string, and no space should be removed. Even if there is an = sign. `;
alert(string);
Minified code:
const word='This';const string=` ${word}should be interpreted as normal string,and no space should be removed.Even if there is an=sign.`;alert(string);
Expected minified code:
const word='This';const string=` ${word} should be interpreted as normal string,and no space should be removed.Even if there is an = sign. `;alert(string);
The text was updated successfully, but these errors were encountered:
I'll see if i can do something about this, but i am increasingly becoming more and more frustrated with way this distribution works so am considering chucking it back into ADOPTME on CPAN. Will have an update sometime in the next couple of weeks.
When using back-ticks to define template literals, no spaces should be stripped.
=
(maybe other signs too) are however removed.Un-minified code:
Minified code:
Expected minified code:
Un-minified code:
Minified code:
Expected minified code:
The text was updated successfully, but these errors were encountered: