Skip to content

Instantly share code, notes, and snippets.

@ducksoupdev
Created December 21, 2016 10:39
Show Gist options
  • Select an option

  • Save ducksoupdev/83f153d2353b5cd8b22d54a7fd17f73a to your computer and use it in GitHub Desktop.

Select an option

Save ducksoupdev/83f153d2353b5cd8b22d54a7fd17f73a to your computer and use it in GitHub Desktop.
SystemJS Typescript loader
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src"
},
//packages defines our app package
packages: {
app: {
main: './main.ts',
defaultExtension: 'ts'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment