理论上可行吗?
我尝试过使用 jspm
0.16 和 0.17 以及 jspm build
命令。 bundle 已生成,但在 aurelia-loader-default
中加载失败,并出现错误
aurelia-loader-default.js:160 Uncaught (in promise) TypeError: require is not a function
at DefaultLoader.loadModule (http://localhost:3000/dist/bundle.js:1466:9)
at DefaultLoader.loadModule (http://localhost:3000/dist/bundle.js:1465:14)
at http://localhost:3000/dist/bundle.js:554:25DefaultLoader.loadModule @ aurelia-loader-default.js:160DefaultLoader.loadModule @ aurelia-loader-default.js:157(anonymous function) @ aurelia-bootstrapper.js:85
最佳答案
这是可能的。跟踪所需的增强here
关于javascript - Aurelia 的 Jspm SFX bundle ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40500654/