Browse Source

amberc: Load es2015-polyfills directly. TODO better.

Herbert Vojčík 7 years ago
parent
commit
369e21ab74
2 changed files with 5 additions and 1 deletions
  1. 1 0
      Gruntfile.js
  2. 4 1
      external/amber-dev/lib/amberc.js

+ 1 - 0
Gruntfile.js

@@ -40,6 +40,7 @@ module.exports = function (grunt) {
         amberc: {
             options: {
                 amber_dir: process.cwd(),
+                configFile: "config.js",
                 closure_jar: ''
             },
             amber: {

+ 4 - 1
external/amber-dev/lib/amberc.js

@@ -202,7 +202,10 @@ function collect_st_files(configuration) {
  */
 function create_compiler(configuration) {
     var include_files = configuration.load;
-    return new Promise(configuration.requirejs.bind(null, ["amber/lang", "amber_core/Platform-Node"]))
+    return new Promise(configuration.requirejs.bind(null, ["amber/es2015-polyfills"]))
+        .then(function () {
+            return new Promise(configuration.requirejs.bind(null, ["amber/lang", "amber_core/Platform-Node"]));
+        })
         .then(function (boot) {
             configuration.core = boot.api;
             configuration.globals = boot.globals;