From 5bf0020ba0c24251969cd5ec2fafed325611ef53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Wed, 7 Oct 2015 23:04:40 +0200 Subject: [PATCH] Added information about node runtime loading using jspm for config --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a0d020d3..8413e87a 100644 --- a/README.md +++ b/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: