forked from VadimDez/ng2-pdf-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.config.js
42 lines (35 loc) · 1.05 KB
/
system.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
37
38
39
40
41
42
(function (global) {
// map tells the System loader where to look for things
var map = {
'app': './build/',
'rxjs': './build/lib/rxjs',
'@angular': './build/lib/@angular',
'pdfjs-dist': './build/lib/pdfjs-dist',
//'pdf-viewer': './dist/'
};
// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
// 'pdf-viewer': { main: 'pdf-viewer.component.js', defaultExtension: 'js' }
};
[
'common',
'compiler',
'core',
'forms',
'platform-browser',
'platform-browser-dynamic'
].forEach(function (pkgName) {
packages['@angular/' + pkgName] = { main: 'bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
});
var config = {
map: map,
packages: packages
};
// filterSystemConfig - index.html's chance to modify config before we register it.
if (global.filterSystemConfig) {
global.filterSystemConfig(config);
}
System.config(config);
})(this);