-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemjs.config.js
150 lines (147 loc) · 4.77 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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
(function (global) {
System.config({
// DEMO ONLY! REAL CODE SHOULD NOT TRANSPILE IN THE BROWSER
transpiler: "ts",
typescriptOptions: {
// Copy of compiler options in standard tsconfig.json
target: "es2015",
module: "system", //gets rid of console warning
moduleResolution: "node",
sourceMap: false,
emitDecoratorMetadata: true,
experimentalDecorators: true,
lib: ["es2015", "dom"],
noImplicitAny: true,
suppressImplicitAnyIndexErrors: true
},
meta: {
typescript: {
exports: "ts"
},
'*.css': {loader: 'css'}
},
paths:
{
// paths serve as alias
"npm:": "https://cdn.jsdelivr.net/npm/",
...systemJsPaths
},
// map tells the System loader where to look for things
map: {
css: (boilerplatePath.length === 0 ? `./` : `${boilerplatePath}/`) + "css.js",
// 'css': 'npm:[email protected]/css.js',
ts: "npm:[email protected]/lib/plugin.js",
tslib: "npm:[email protected]/tslib.js",
typescript: "npm:[email protected]/lib/typescript.min.js",
// appLocation comes from index.html
app: appLocation,
...systemJsMap
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
css: {},
app: {
main: "./main.ts",
defaultExtension: "ts",
},
'@ag-grid-community/core': {
format: 'cjs',
},
'@ag-grid-community/client-side-row-model': {
format: 'cjs',
},
'@ag-grid-community/csv-export': {
format: 'cjs',
},
'@ag-grid-community/infinite-row-model': {
format: 'cjs',
},
'@ag-grid-enterprise/advanced-filter': {
format: 'cjs',
},
'@ag-grid-enterprise/charts': {
format: 'cjs',
},
'@ag-grid-enterprise/charts-enterprise': {
format: 'cjs',
},
'@ag-grid-enterprise/clipboard': {
format: 'cjs',
},
'@ag-grid-enterprise/column-tool-panel': {
format: 'cjs',
},
'@ag-grid-enterprise/core': {
format: 'cjs',
},
'@ag-grid-enterprise/excel-export': {
format: 'cjs',
},
'@ag-grid-enterprise/filter-tool-panel': {
format: 'cjs',
},
'@ag-grid-enterprise/master-detail': {
format: 'cjs',
},
'@ag-grid-enterprise/menu': {
format: 'cjs',
},
'@ag-grid-enterprise/multi-filter': {
format: 'cjs',
},
'@ag-grid-enterprise/range-selection': {
format: 'cjs',
},
'@ag-grid-enterprise/rich-select': {
format: 'cjs',
},
'@ag-grid-enterprise/row-grouping': {
format: 'cjs',
},
'@ag-grid-enterprise/server-side-row-model': {
format: 'cjs',
},
'@ag-grid-enterprise/set-filter': {
format: 'cjs',
},
'@ag-grid-enterprise/side-bar': {
format: 'cjs',
},
'@ag-grid-enterprise/sparklines': {
format: 'cjs',
},
'@ag-grid-enterprise/status-bar': {
format: 'cjs',
},
'@ag-grid-enterprise/viewport-row-model': {
format: 'cjs',
},
'ag-grid-community': {
main: './dist/package/main.cjs.js',
defaultExtension: 'js',
format: 'cjs',
},
'ag-grid-enterprise': {
main: './dist/package/main.cjs.js',
defaultExtension: 'js',
format: 'cjs',
},
'ag-grid-charts-enterprise': {
main: './dist/package/main.cjs.js',
defaultExtension: 'js',
format: 'cjs',
},
'ag-charts-community': {
defaultExtension: 'js',
format: 'cjs',
},
'ag-charts-enterprise': {
defaultExtension: 'js',
format: 'cjs',
},
}
});
})(this);
window.addEventListener('error', e => {
console.error('ERROR', e.message, e.filename)
});