JSqueeze is abandoned and does not support template literals

Created on 21 October 2021, about 3 years ago
Updated 18 April 2023, over 1 year ago

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.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇵🇱Poland dawid_nawrot

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024