Closed jenbk closed 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'); }
Fixed in 0.4.0.
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