How to load named exports with SystemJS
问题 If I have a lib, say utils.js which looks like this exports.foo = function () { return 'foo'; }; exports.bar = function () { return 'bar'; }; Which can be used as follows import {foo} from './libs/utils'; console.log(foo()); Not very spectacular, but I get the feeling that this problem is the origin of the issue described in this post. Anyway I cannot get this to work in combination with SystemJS. I have to change the code to fix it import utils from './libs/utils'; console.log(utils.foo());