Closed JanThiel closed 6 years ago
That's ES6 - use uglify-es
instead.
You are right... I am absolutely confused what es6 has to do in a delivered js library file which has to support non es6 browsers O.o. I will nag LayerSlider with this question! Thanks anyway and sorry for bothering you with this.
@JanThiel it looks like you should hire me to give you some insights Into JavaScript i am german nativ speaking JavaScript Senior Dev :)
Bug report or feature request? Bug
ES5 or ES6+ input? ES5
Uglify version (
uglifyjs -V
) "version": "3.1.4",JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.JavaScript output or error produced. Can also be reproduced here: https://skalman.github.io/UglifyJS-online/
I am trying to compress the LayerSlider WordPress Plugin Files and stumbled upon the mentioned error.