JSmin + doesn't support let and drupalSettings

Created on 25 November 2021, over 2 years ago

JSMinPlus had a possible error minifying, missing operand on line 1 disappears when I remove drupalSettings from js file, so basically changing this line:
(function ($, Drupal, drupalSettings) {
to:
(function ($, Drupal) {
gets rid of this error, but doesn't fix my problem as I still need drupalSettings in this file.

Another thing I noticed is that "JSMinPlus had a possible error minifying, Error: Parse error: Missing ; before statement in file '[inline]' on line x" error gets fixed for me, when I change "let" to "var", so it seems like "let" is not supported

πŸ› Bug report
Status

Active

Version

4.1

Component

Compression/Minification

Created by

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.69.0 2024