These are chat archives for systemjs/systemjs

17th
May 2015
Jon Stevens
@lookfirst
May 17 2015 00:25
In the systemjs builder config is it possible to specify the path to jspm_packages?
Eric Eastwood
@MadLittleMods
May 17 2015 00:33
@lookfirst Look in config.js. You might be able to change the paths to how you want
Jon Stevens
@lookfirst
May 17 2015 00:42
Yea, not quite, but I see now how I need to fix my build to make this all work. It is rather complicated cause I’m fitting this into a somewhat weird directory structure.
Eric Eastwood
@MadLittleMods
May 17 2015 01:10
Ye I have had issues where I wanted to load something outside/parent of the root of the project. I didn't find a fix for that.
Jon Stevens
@lookfirst
May 17 2015 03:35
What is the magic to get babelHelpers bundled with bundleSFX?
Jon Stevens
@lookfirst
May 17 2015 04:10
Wow, I added import 'babel/external-helpers’; to the top of my file to try to get this working and bundleSFX fails silently.
.catch() doesn’t do anything.
Jon Stevens
@lookfirst
May 17 2015 07:51
Here is a crazy question… when I System.import(‘foo.css!’)… how can i control the order which it gets added to the <head>? In other words, if there is already another System.import()’d css, I’d like to put it after the first one. Right now, it seems like I’m getting them added before.
Micah Zoltu
@MicahZoltu
May 17 2015 07:53
I believe they are added in the order they are seen.
If using JSPM and both of them are external though, I believe what you want to do is set them up as dependencies.
That way SystemJS will put the dependency first.
Jon Stevens
@lookfirst
May 17 2015 07:54
Actually, you’re right, they are getting added in order seen. I don’t want to import them. This is a single page app and I want to load them on demand. For example, I don’t need to load the dashboard css until after someone logs into my site.
Chris Draycott-Wheatley
@chrisdwheatley
May 17 2015 09:01
is there a way to import some css from a CDN, e.g. import 'https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css!'?
Guy Bedford
@guybedford
May 17 2015 11:39
@swirlycheetah you need to alias the cdn as a path to do this
import 'cdnjs:normalize/3.0.3/normalize.css!' where System.paths['cdnjs:*'] = 'https://cdnjs.cloudflare.com/ajax/libs/*.js'
Chris Draycott-Wheatley
@chrisdwheatley
May 17 2015 16:17
perfect, thanks @guybedford
Johan Alkstål
@johanalkstal
May 17 2015 21:49
Can I get JS source maps somehow when using systemjs?