FIX: Build was broken because uglify can't accept `let` or `const`

FIX: Build was broken because uglify can’t accept let or const

For now we can live with var.

diff --git a/app/assets/javascripts/discourse-loader.js b/app/assets/javascripts/discourse-loader.js
index bf3d0cc..7682617 100644
--- a/app/assets/javascripts/discourse-loader.js
+++ b/app/assets/javascripts/discourse-loader.js
@@ -1,15 +1,15 @@
 var define, requirejs;
 
 (function () {
-  let JS_MODULES = {};
-  const ALIASES = {
+  var JS_MODULES = {};
+  var ALIASES = {
     "ember-addons/ember-computed-decorators":
       "discourse-common/utils/decorators",
     "discourse/lib/raw-templates": "discourse-common/lib/raw-templates",
     "preload-store": "discourse/lib/preload-store",
     "fixtures/user_fixtures": "discourse/tests/fixtures/user-fixtures",
   };
-  const ALIAS_PREPEND = {
+  var ALIAS_PREPEND = {
     fixtures: "discourse/tests/",
     helpers: "discourse/tests/",
   };
@@ -304,10 +304,10 @@ var define, requirejs;
   }
 
   function transformForAliases(name) {
-    let alias = ALIASES[name];
+    var alias = ALIASES[name];
     if (!alias) {
-      let segment = name.split("/")[0];
-      let prepend = ALIAS_PREPEND[segment];
+      var segment = name.split("/")[0];
+      var prepend = ALIAS_PREPEND[segment];
       if (!prepend) {
         return name;
       }

GitHub sha: e363b113

This commit appears in #10806 which was approved by danielwaterworth. It was merged by eviltrout.