From 331223f304033cded0ec34716ef4fd86fcfbd9b8 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sat, 31 Aug 2019 12:01:21 +0200 Subject: [PATCH] build: fix dev app not working in IE11 Fixes the dev app throwing a syntax error in IE11 because we were loading a file that has an arrow function. --- src/dev-app/system-rxjs-operators.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dev-app/system-rxjs-operators.js b/src/dev-app/system-rxjs-operators.js index 193ccde6bc2d..cdfa24c27f78 100644 --- a/src/dev-app/system-rxjs-operators.js +++ b/src/dev-app/system-rxjs-operators.js @@ -14,7 +14,9 @@ // all rxjs files individually. if (typeof define === 'function' && define.amd) { - define(['exports', 'rxjs'], (exports, rxjs) => { + // Note that this needs to be in ES5, because we load it + // directly into the browser without transpiling. + define(['exports', 'rxjs'], function(exports, rxjs) { // Re-export all operators in this AMD module. Object.assign(exports, rxjs.operators); });