Created
June 14, 2017 21:11
-
-
Save webbushka/3e85986d2314f22a1b802f421b40acc6 to your computer and use it in GitHub Desktop.
Example of SystemJS + Angular
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
transpiler: 'typescript', | |
typescriptOptions: { emitDecoratorMetadata: true }, | |
map: { | |
'rxjs': 'https://unpkg.com/[email protected]', | |
'@angular/core': 'https://unpkg.com/@angular/[email protected]', | |
'@angular/common': 'https://unpkg.com/@angular/[email protected]', | |
'@angular/compiler': 'https://unpkg.com/@angular/[email protected]', | |
'@angular/platform-browser': 'https://unpkg.com/@angular/[email protected]', | |
'@angular/platform-browser-dynamic': 'https://unpkg.com/@angular/[email protected]', | |
}, | |
packages: { | |
'@angular/core': { main: 'index.js' }, | |
'@angular/common': { main: 'index.js' }, | |
'@angular/compiler': { main: 'index.js' }, | |
'@angular/platform-browser': { main: 'index.js' }, | |
'@angular/platform-browser-dynamic': { main: 'index.js' }, | |
} | |
}); | |
System.import('main.ts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment