-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemjs.config.js
36 lines (31 loc) · 1.07 KB
/
systemjs.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(function (global) {
var SystemJS = global.SystemJS;
var map = {
'@angular': 'vendor/@angular',
'rxjs': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/add/operator/map': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/Rx': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/Subject': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/observable/PromiseObservable': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/add/observable/fromEvent': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/operator/toPromise': 'vendor/rxjs/bundles/Rx.umd.min.js',
'rxjs/Observable': 'vendor/rxjs/bundles/Rx.umd.min.js',
};
var packages = {};
var angularPackages = [
'common',
'compiler',
'core',
'http',
'platform-browser',
'platform-browser-dynamic',
];
angularPackages.forEach(pkg => packages['@angular/' + pkg] = { main: 'bundles/' + pkg + '.umd.min.js', defaultExtension: 'js' });
SystemJS.config({
map: map,
packages: packages,
paths: {
'rxjs/Subject': 'vendor/rxjs/bundles/Rx.umd.js'
}
});
})(this);