These are chat archives for systemjs/systemjs

16th
May 2015
Jon Stevens
@lookfirst
May 16 2015 04:38
Weird, all the sudden I’m seeing a request via the es6-module-loader for /babel/external-helpers.js but I can’t tell where this is coming from and it also isn’t being found.
Jon Stevens
@lookfirst
May 16 2015 04:45
Looks like the only thing that changed is that now things are using babel 5.4.3 instead of babel 5.3.3
Jon Stevens
@lookfirst
May 16 2015 05:33
Ok, I figured at least part of it out… unbundled, my app works fine and now loads the external helpers now that i’ve added more code to the project and babel is generating things with it. the external helpers is resolved correctly by systemjs in the right jspm_packages path. the problem is when i bundle the app, that path gets normalized to just /babel/external-helpers.js. i’m going to try concating external-helpers into my bundle.
Jon Stevens
@lookfirst
May 16 2015 06:06
@guybedford Also, thanks for the tip on the cache busting. That worked great.
Chris Draycott-Wheatley
@chrisdwheatley
May 16 2015 15:55
how do i start using systemjs plugins?
Jon Stevens
@lookfirst
May 16 2015 22:58
I’ve got a question about relative paths. Let’s say I have an app in a folder /admin/ and there is an index.html in there and that loads ../jspm_packages/system.js and ../config.js. I then have System.import(‘js/app’). What I’m seeing is a request for /admin/js/app.js. What I’d really like to reference is /js/app.js, but I can’t seem to do that. Any thoughts? I guess the question is: how do I share common js between apps on different urls?
Eric Eastwood
@MadLittleMods
May 16 2015 23:02
lookfirst: I am just guessing, but maybe adjust System.config.baseURL
Jon Stevens
@lookfirst
May 16 2015 23:17
@MadLittleMods thanks. that did it. I forgot to set the baseURL. =)