Problem/Motivation
Modern JS allows to use template literals in string contactenation, eg.:
let myPet = 'seahorse';
console.log(`My favorite animal is the ${myPet}.`);
This code would be minified to:
let myPet = 'seahorse';
console.log(`My favorite animal is the e{myPet};.`);
Which breaks the script.
Steps to reproduce
Provide a js script with template literals and minify it.
Proposed resolution
Change minifier library from patchwork/jsqueeze to MatthiasMullie\Minify
Remaining tasks
Patch provided.
Comments
Comment #2
dawid_nawrot commentedComment #3
socialnicheguru commentedComment #4
slydevil commentedComment #5
slydevil commentedComment #6
slydevil commented