我正在为systemjs映射路径而苦苦挣扎。
下面是我当前的配置。我想让@angular-redux/form/dist/source/connect成为@angular-redux/form/dist/source/connect/index.js
但它一直指向@angular-redux/form/dist/source/connect.js
我假设我写的地图不正确,或者我应该使用meta…有人能帮我介绍一下吗?
'use strict';
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function () {
System.config({
paths: {
// paths serve as alias
'npm:': '../node_modules/'
},
// map tells the System loader where to look for things
map: {
"@angular-redux/form": "npm:@angular-redux/form"
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
'@angular-redux/form': {
main: 'dist/source/index.js',
map: {
'./connect': './connect/index.js',
'./connect-array': './connect-array/index.js'
}
}
}
});
})(this);
https://stackoverflow.com/questions/47490696
复制相似问题