|
1 | 1 | (function(global) {
|
| 2 | + var paths = { |
| 3 | + // paths serve as alias |
| 4 | + 'npm:': 'node_modules/' |
| 5 | + }; |
2 | 6 | // map tells the System loader where to look for things
|
3 | 7 | var map = {
|
4 | 8 | 'app': 'dist',
|
5 |
| - '@angular': 'node_modules/@angular', |
6 |
| - 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', |
7 |
| - 'rxjs': 'node_modules/rxjs', |
8 |
| - '@ngrx': 'node_modules/@ngrx' |
| 9 | + |
| 10 | + // angular bundles |
| 11 | + '@angular/core': 'npm:@angular/core/bundles/core.umd.js', |
| 12 | + '@angular/common': 'npm:@angular/common/bundles/common.umd.js', |
| 13 | + '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', |
| 14 | + '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', |
| 15 | + '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', |
| 16 | + '@angular/http': 'npm:@angular/http/bundles/http.umd.js', |
| 17 | + '@angular/router': 'npm:@angular/router/bundles/router.umd.js', |
| 18 | + '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', |
| 19 | + |
| 20 | + 'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api', |
| 21 | + 'rxjs': 'npm:rxjs', |
| 22 | + '@ngrx': 'npm:@ngrx' |
9 | 23 | };
|
10 | 24 | // packages tells the System loader how to load when no filename and/or no extension
|
11 | 25 | var packages = {
|
12 | 26 | 'app': { main: 'main.js', defaultExtension: 'js' },
|
13 |
| - 'rxjs': { defaultExtension: 'js' } |
| 27 | + 'rxjs': { defaultExtension: 'js' }, |
| 28 | + 'angular2-in-memory-web-api': { main: './index.js', defaultExtension: 'js' }, |
| 29 | + '@ngrx/core': { main: 'index.js', defaultExtension: 'js' }, |
| 30 | + '@ngrx/store': { main: 'index.js', defaultExtension: 'js' } |
14 | 31 | };
|
15 |
| - var packageNames = [ |
16 |
| - '@angular/common', |
17 |
| - '@angular/compiler', |
18 |
| - '@angular/core', |
19 |
| - '@angular/http', |
20 |
| - '@angular/platform-browser', |
21 |
| - '@angular/platform-browser-dynamic', |
22 |
| - '@angular/testing', |
23 |
| - '@angular/upgrade', |
24 |
| - '@ngrx/core', |
25 |
| - '@ngrx/store' |
26 |
| - ]; |
27 |
| - // add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' } |
28 |
| - packageNames.forEach(function(pkgName) { |
29 |
| - packages[pkgName] = { main: 'index.js', defaultExtension: 'js' }; |
30 |
| - }); |
31 | 32 | var config = {
|
| 33 | + paths: paths, |
32 | 34 | map: map,
|
33 | 35 | packages: packages
|
34 | 36 | };
|
|
0 commit comments