Added information about node runtime loading using jspm for config

This commit is contained in:
Peter Müller 2015-10-07 23:04:40 +02:00
parent aeef702a73
commit 5bf0020ba0

View File

@ -113,6 +113,16 @@ System.import('./app').then(function(m) {
If using TypeScript, set `global.ts = require('typescript')` before importing to ensure it is loaded correctly.
If you are using jspm as a package manager you will also need to load the generated `config.js`. The best way to do this in node is to get your `System` instance through jspm, which wil automatically load your config correctly for you:
```js
var System = require('jspm').Loader();
System.import('lodash').then(function (_) {
console.log(_);
});
```
### Plugins
Supported loader plugins: