瀏覽代碼

use abstract "amber/Platform"

and each load / build must somehow map it to
either amber_core/Platform-Browser or amber_core/Platform-Node
Herbert Vojčík 8 年之前
父節點
當前提交
b7c5d44550
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      index.html

+ 1 - 0
index.html

@@ -20,6 +20,7 @@
             clearInterval(__interval);
             require.baseUrl = base;
             require.paths['helios/app'] = require.paths['helios/index'].replace("index", "app");
+            require.map["*"]["amber/Platform"] = "amber_core/Platform-Browser";
             require.callback = function () {
               require(["helios/app"], function (amber) {
                 amber.initialize({'transport.defaultAmdNamespace': "amber_core"});