Repository navigation
Expand file tree
/
Copy pathsystemjs.config.js
More file actions
54 lines (54 loc) · 1.91 KB
/
Copy pathsystemjs.config.js
File metadata and controls
54 lines (54 loc) · 1.91 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
/**
* (based on systemjs.config.js in angular.io)
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
// DEMO ONLY! REAL CODE SHOULD NOT TRANSPILE IN THE BROWSER
transpiler: 'ts',
typescriptOptions: {
tsconfig: true
},
meta: {
'typescript': {
"exports": "ts"
}
},
paths: {
// paths serve as alias
'npm:': 'https://unpkg.com/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'app',
'main': 'app/main',
// angular bundles - currently uses the latest Angular 5
'@angular/core': 'npm:@angular/core@5/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common@5/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler@5/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser@5/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic@5/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http@5/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router@5/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms@5/bundles/forms.umd.js',
// other libraries
'rxjs': 'npm:rxjs@5.5.6',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
// typescript for compilation in the browser
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
'typescript': 'npm:typescript@2.2.1/lib/typescript.js'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './app/main.ts',
defaultExtension: 'ts'
},
rxjs: {
defaultExtension: 'js'
}
}
});
})(this);