This code on Internet explorer <= 11, doesn't work (only on edge works)
Bus.$on('UpdateCartData', (event) => {
this.cart = event.cart;
this.cart_options = event.cart_options;
});
Says SCRIPT1002: Syntax error
When I transform it through Babel polyfill, suggests to transform it to:
Bus.$on('UpdateCartData', function (event) {
As this doesn't shows Syntax error anymore, but the logic and functionallity stops working even on Google Chrome.
Any ideas what to do?