tssajo / Minify

Minify for Sublime Text allows you to quickly minify and/or beautify CSS, JavaScript, JSON, HTML and SVG files -- compatible with ST2 and ST3
Other
93 stars 16 forks source link

Minify fails to recognize 'const' #70

Closed AquaJew closed 6 years ago

AquaJew commented 6 years ago

Tried to run minify in sublime on my JavaScript, and got a big nasty popup with uglifyjs:

Parse error at [FILENAME] "const IMAGES = document.querySelectorAll("img");

ERROR: Unexpected token: keyword (const)

Does minify fail to support ES6?

tssajo commented 6 years ago

The Minify plugin is just the bond between SublimeText editor and UglifyJS. The actual minification is done by UglifyJS which is a program written in Javascript. That program is not written nor maintained by me.