Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular SystemJS如何使用“下的配置?”;包裹;?_Angular_Systemjs - Fatal编程技术网

Angular SystemJS如何使用“下的配置?”;包裹;?

Angular SystemJS如何使用“下的配置?”;包裹;?,angular,systemjs,Angular,Systemjs,在systemjs.config.js中,我们有包对象,它为应用程序中的路径提供配置 例如,这里我们告诉SystemJS,pathnode\u modules/moment的默认扩展名是js: packages: { 'node_modules/moment': { defaultExtension: 'js' } } 我的问题是,SystemJS何时使用此配置?它实际上什么时候加载文件

systemjs.config.js
中,我们有
对象,它为应用程序中的路径提供配置

例如,这里我们告诉
SystemJS
,path
node\u modules/moment
的默认扩展名是
js

packages: {
  'node_modules/moment': {
    defaultExtension: 'js'
  }
}
我的问题是,
SystemJS
何时使用此配置?它实际上什么时候加载文件