Subject: | Bug when minifying ES6 template literals |
Hi,
In 2015, with ES6/ES2016, came template literals.
For exemple, where before one would have needed to write:
vat = $("#items-" + i + "-vat_id :selected");
One now can write:
vat = $(`#items-${i}-vat_id :selected`);
It's more concise and well, looks more like real code.
In any way, the problem is that JavaScript-Minifier-XS does not recognizes this, and minifies this as:
vat=$(`#items-${i}-vat_id:selected`);
Stripping the space inside the template.