These are chat archives for systemjs/systemjs
window.react = require('react');
@guybedford Found it. Adding
if (exports.default) return exports.default
right after line https://github.com/systemjs/systemjs/blob/master/lib/extension-register.js#L347 works in my app, but I know it’s not the actual solution.
I saw a couple of references to loader Plugins (e.g. https://github.com/systemjs/systemjs#plugins and http://stackoverflow.com/questions/24923479/can-es6s-module-loader-also-load-assets-html-css) but I can't figure out what I need to do to get them working/installed. Missing piece of documentation :) Also missing seems to be an explanation about the exclamation mark that I see everywhere plugins are mentioned. When/why is that needed?
My actual use case is to load CSS & JS for views using Angular's ui-router in the resolve method (https://github.com/angular-ui/ui-router/wiki). Has anyone here any experience with that?