enb / enb-borschik

ENB tech to run borschik
Other
13 stars 15 forks source link

Error: Unexpected token operator «=», expected punc «,» #51

Closed birhoff closed 7 years ago

birhoff commented 8 years ago

ES6 default params crash:

Error: Unexpected token operator «=», expected punc «,» (line: 14895, col: 49, pos: 453112)
 14893 |     * @private
 14894 |     */
 14895 |    request._prepareSettings = function(settings = {}) {
---------------------------------------------------------^
 14896 |        const qs = querystring.parse(location.search);
 14897 |
Error result in /usr/src/app/desktop.bundles/index/index.ru.min.js.borschik-error
    at /usr/src/app/node_modules/enb-borschik/node_modules/borschik/lib/tech.js:86:31
    at Array.<anonymous> (/usr/src/app/node_modules/vow/lib/vow.js:712:56)
    at Immediate.callFns [as _onImmediate] (/usr/src/app/node_modules/vow/lib/vow.js:23:35)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)
tadatuta commented 8 years ago

Depends on https://github.com/borschik/borschik/issues/120 which depends on https://github.com/mishoo/UglifyJS2/issues/448

Should work with npm i github:mishoo/UglifyJS2#harmony --save-dev