Javascript SystemJS未从节点_模块加载模块

Javascript SystemJS未从节点_模块加载模块,javascript,systemjs,Javascript,Systemjs,我正在使用SystemJS加载一个简单的JavaScript文件: define("main", ["require", "exports", "jquery"], function (require, exports, $) { "use strict"; exports.__esModule = true; console.log($(document).html()); }); 我是这样加载的: <script>require("systemjs")&

我正在使用SystemJS加载一个简单的JavaScript文件:

define("main", ["require", "exports", "jquery"], function (require, exports, $) {
    "use strict";
    exports.__esModule = true;
    console.log($(document).html());
});
我是这样加载的:

<script>require("systemjs")</script>
<script>
    SystemJS.import('./dist/app.js').then(null, console.error.bind(console));
</script>
require(“systemjs”)
SystemJS.import('./dist/app.js')。然后(null,console.error.bind(console));
但当我在electron中运行它时,我得到了一个错误:

GETfile:///D:/Projects/myapp/app/jquery net::找不到错误文件


为什么SystemJS不像任何其他sane javascript加载程序那样在
节点\u模块中查找jquery?如何让它看起来像这样?

问题是我的编译器还没有检测到更改,因此生成的文件包含不同模块的代码。它仍然没有按照我想要的方式工作,但至少没有出错:/