Code works but will not deploy

I have some code that works in debug but will not deploy. some examples:

bks.forEach(element => {
bookList.push(element.book);
});

and

let uBookList = [...new Set(bookList)];

I assume the syntax is not allowed by deploy parser?

Comments

  • I'm sure that this is way too late to solve your problem, but for posterity:

    The minifier used by Enyo does not support ES6 syntax. It will break on both the let keyword, and the ... operator.
Sign In or Register to comment.