davidB / yuicompressor-maven-plugin

maven's plugin to compress (Minify / Ofuscate / Aggregate) Javascript files and CSS files using YUI Compressor
http://davidb.github.io/yuicompressor-maven-plugin/
GNU Lesser General Public License v2.1
122 stars 48 forks source link

"for of" loop ES6 not recognized as valid syntax #89

Closed boyko11 closed 8 years ago

boyko11 commented 8 years ago

Using plugin version 1.5.1. The "for-of" loop ES6 syntax is not considered valid and fails the build:

for(var enrlmnt of studentSectionsEnrolledInThisMeeting) { console.log(enrlmnt); }

build 03-Mar-2016 10:36:23 [ERROR] /opt/app/bamboo/bamboo-home/xml-data/build-dir/LMS-MYP-JOB1/src/main/webapp/scripts/bigblue.js [197:39]: missing ; after for-loop initializer build 03-Mar-2016 10:36:23 [ERROR] ...bigblue.js:line 197:column 39:missing ; after for-loop initializer build 03-Mar-2016 10:36:23 for(var enrlmnt of studentSectionsEnrolledInThisMeeting) {

davidB commented 8 years ago

yuicompressor 2.4.7/2.4.8 doesn't support ES 6 (it was released in 2014).

On Thu, Mar 3, 2016 at 4:46 PM, Boyko Todorov notifications@github.com wrote:

Using plugin version 1.5.1. The "for-of" loop ES6 syntax is not considered valid and fails the build:

for(var enrlmnt of studentSectionsEnrolledInThisMeeting) { console.log(enrlmnt); }

build 03-Mar-2016 10:36:23 [ERROR] /opt/app/bamboo/bamboo-home/xml-data/build-dir/LMS-MYP-JOB1/src/main/webapp/scripts/bigblue.js [197:39]: missing ; after for-loop initializer build 03-Mar-2016 10:36:23 [ERROR] ...bigblue.js:line 197:column 39:missing ; after for-loop initializer build 03-Mar-2016 10:36:23 for(var enrlmnt of studentSectionsEnrolledInThisMeeting) {

— Reply to this email directly or view it on GitHub https://github.com/davidB/yuicompressor-maven-plugin/issues/89.

boyko11 commented 8 years ago

Thanks! Your plugin has been great for our project!