-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem.config.js
63 lines (60 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// const srcPath = '../src-front';
// const nodeModulesPath = '../node_modules';
// System.config({
// baseURL: '.',
// transpiler: false,
// paths: {
// 'src:*': `${srcPath}/*`,
// 'node:*': `${nodeModulesPath}/*`,
// },
// map: {
// 'src': srcPath,
// 'app': `src:app`,
// 'babel-polyfill': 'node:babel-polyfill/dist/polyfill.min.js', // async/awaitに必要。
// //'numeral': 'node:numeral/min/numeral.min.js',
// //'moment': 'node:moment/min/moment.min.js',
// 'lodash': 'node:lodash/lodash.js',
// 'flat': 'node:flat/index.js',
// 'falcor': 'node:falcor/dist/falcor.browser.min.js',
// },
// packages: {
// 'src': { defaultExtension: 'js'},
// },
// meta: {
// 'app/boot.js': { deps: ['babel-polyfill'] }
// }
// });
System.config({
baseURL: '/',
defaultJSExtensions: 'js',
transpiler: false,
paths: {
'node:*': 'node_modules/*',
},
map: {
'app': 'src-client/app',
// 'numeral': 'node:numeral/min/numeral.min.js',
// 'moment': 'node:moment/min/moment.min.js',
'lodash': 'node:lodash/lodash.js',
'flat': 'node:flat/index.js',
'falcor': 'node:falcor/dist/falcor.browser.js',
'@angular': 'node:@angular',
'rxjs': 'node:rxjs',
'symbol-observable': 'node:symbol-observable',
// 'zone.js': 'node:zone.js'
},
packages: {
'app': { main: 'boot' },
'@angular/core': { main: 'index' },
'@angular/common': { main: 'index' },
'@angular/compiler': { main: 'index' },
'@angular/platform-browser': { main: 'index' },
'@angular/platform-browser-dynamic': { main: 'index' },
'@angular/router': { main: 'index' },
'@angular/router-deprecated': { main: 'index' },
'@angular/http': { main: 'index' },
'rxjs': {},
'symbol-observable': { main: 'index' },
// 'zone.js': {}
}
});