HookyQR / VSCodeMinify

Add minify function to VSCode 0.10+
53 stars 21 forks source link

Minify failed: SyntaxError: Unexpected token: operator(>) #34

Closed jenbk closed 5 years ago

jenbk commented 5 years ago

The following working JavaScript example minify's in version 0.2.5 but will not minify in 0.3.0.
Error is: Minify failed: SyntaxError: Unexpected token: operator(>) Is there an update that will allow this to minify?

Thanks

//***************************************************************************************************
const delegate = (selector) => (cb) => (e) => e.target.matches(selector) && cb(e);
const inputDelegate = delegate('input'); 

window.addEventListener('load', function() {
   document.addEventListener('focusin', inputDelegate((el) => focusIn(el)));

   document.addEventListener('focusout', inputDelegate((el) => focusOut(el)));
});

function focusIn(e) {
   console.log('Focus In Event');
}

function focusOut(e) {
   console.log('Focus Out Event');
} 
HookyQR commented 5 years ago

Fixed in 0.4.0.