mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
Added information about node runtime loading using jspm for config
This commit is contained in:
parent
aeef702a73
commit
5bf0020ba0
10
README.md
10
README.md
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user