I'm getting this error when I try a production build for my game:
On a line like this, for example:
I've determined it doesn't like the let keyword. If I change it to var it compiles fine. I thought maybe production is not supporting Javascript ECMAScript 6, but I'm able to use const, which I believe was also introduced in ES6.
Code: Select all
missing ; before statementCode: Select all
let STOCK_SELECTION_MODE_OFF = 0;