These are chat archives for systemjs/systemjs

4th
May 2016
Amal Hussein
@amalahussein
May 04 2016 01:53
@Zoltu I can probably help u figure out your setup issues if u are still stuck, don't give up on 0.17 yet, its awesome! Ping me when/if ur back online.
Micah Zoltu
@MicahZoltu
May 04 2016 02:15
@amalahussein I believe I got it working enough at this point. I thought jspm build auto-added peer dependencies which was the main reason I upgraded but it doesn't appear to so that is the last hurdle for me that makes the scaffold feel incomplete.
Amal Hussein
@amalahussein
May 04 2016 02:16
what are u trying to add as a peer dep?
Micah Zoltu
@MicahZoltu
May 04 2016 02:16
JSPM already adds the Aurelia peer dependencies correctly: https://github.com/Zoltu/Templates-Aurelia-TypeScript/blob/master/package.json#L27-L50
But when I try to bundle it doesn't include them automatically so I have to do this: https://github.com/Zoltu/Templates-Aurelia-TypeScript/blob/master/appveyor.yml#L21
Amal Hussein
@amalahussein
May 04 2016 02:17
ahh ok
Micah Zoltu
@MicahZoltu
May 04 2016 02:17
What I want is to be able to do: jspm bundle source\**\*.ts + source\**\*.html!text + aurelia-bootstrapper
And then all of aurelia-bootstrapper peer dependencies would be bundled in as well.
Amal Hussein
@amalahussein
May 04 2016 02:19
@Zoltu so why do you think its not including when bundling?
Micah Zoltu
@MicahZoltu
May 04 2016 02:20
If I bundle with jspm bundle source\**\*.ts + source\**\*.html!text + aurelia-bootstrapper it doesn't bundle in any of the peer dependencies, so my bundle ends up with very little in it and it all is downloaded at runtime from the server.
If I bundle with the giant list of things then it works as expected.
Amal Hussein
@amalahussein
May 04 2016 02:21
all a peer dep is forcing your app to use a specific version of a package recursively
humm, i'm not sure thats is correct, ur peer dep have nothing to do what how its bundled, but rather what version is used through ur app
(idk if i'm making sense to u or just repeating myself :))
Micah Zoltu
@MicahZoltu
May 04 2016 02:23
You are, but this comment about a year ago had me looking forward to peer dependencies for this reason: https://github.com/jspm/jspm-cli/issues/985#issuecomment-127569685
Then when they came out, it turns out they don't actually work like that. So I am sad.
It at least resolved this issue: jspm/jspm-cli#998
Amal Hussein
@amalahussein
May 04 2016 02:27
ok, i see, it seems like a strange feature to be missing though, esp for 0.17. I'm curious to know if they are missing bc they are dynamically loaded at runtime, thats what it seems?
maybe we need a bundle all flag?
Micah Zoltu
@MicahZoltu
May 04 2016 02:30
Yeah, aurelia-bootstrapper doesn't directly link to any of the others, it dynamically loads them at runtime based on whatever complexities are in Aurelia.
Bundle all dependencies flag would be nice. Would save me the effort of having to keep the mega-list of dependencies up to date.
Amal Hussein
@amalahussein
May 04 2016 02:31
yea, and it seems like you have kind of hit up against an interesting use case as well for an early stage project: something using jspm, fetching something else using jspm. jspm inception? lol
λex Vincent
@alexisvincent
May 04 2016 06:47
@Mosho1 yeah it's not possible with out a custom module resolution Algorithm. Basically, SystemJS needs to
λex Vincent
@alexisvincent
May 04 2016 06:54
Know exactly where to find the files it needs. But with node, the files can be in a number of places. The npm resolution alg checks in node_modules then goes up a did and checks there etc
Anatol Ulrich
@spookyvision
May 04 2016 12:42
ohai
I'm a little new to systemjs so unfortunately I'm not good at stating what my problem source actually is. The symptom is that in my production setup (bundled systemjs), when trying to load a hbs file (handlebars plugin), this seems to trigger a file:/// url load of the handlebars runtime, which of course fails. backtrace: https://dpaste.de/OFsE
the import which apparently causes that is import template from './callout.hbs!';
erichooshmand
@erichooshmand
May 04 2016 17:20
Is there a way to get systemjs-builder to not do relative paths and use a root? Trying to compile the new angular RC and get system.register lines like : System.registerDynamic("@angular/core/src/metadata/di.js", ["../../src/facade/lang", "../di/metadata", "../di/forward_ref"]
Also you can see it doesn't strip off the di.js
Maxime Dupré
@maximedupre
May 04 2016 21:35
What's the advantage of using system instead of "amd" or "commonjs"?
I'm talking about the tsc. I have the choice to compile in "system", "amd" or "commonjs". The later two are common, but what would be the advantage of compiling modules as "system"?