es6-css-minify icon indicating copy to clipboard operation
es6-css-minify copied to clipboard

Can't minify logical OR assignments

Open chzager opened this issue 3 years ago • 0 comments

Describe the bug When trying to minify a JavaScript file where logical OR assignments (see MDN) are used, Minify runs into an error ("Unexpected token: operator (=)")

To Reproduce Steps to reproduce the behavior:

  1. Make a new JS file
  2. Sample code:
let a = "";
let b = "";
b ||= a;
  1. Minify the file.
  2. See error output console.

Expected behavior The file should minify to

let a="",b="";b||=a;

Basically it is the same as #144.

Desktop: VS-Code Version: 1.70.2 Minify Version: v3.3.3 OS: Windows_NT x64 10.0.18363

chzager avatar Aug 29 '22 07:08 chzager