These are chat archives for systemjs/systemjs

28th
May 2015
Davis Kim
@davis
May 28 2015 04:20
how do you create bundles easily with systemJS? is there a one-liner cli thing i can use akin to browserify/webpack?
https://github.com/systemjs/builder seems really verbose and i was wondering if i'm missing the simple usecase ._.
Micah Zoltu
@MicahZoltu
May 28 2015 04:37
@davis Use jspm for package management is the only way I know.
(though, I honestly don't know much so don't take my word for anything)
Jonathan Liuti
@johnraz
May 28 2015 10:45
Quick question, I’m not sure exactly how the polyfill is covered when using babel, can someone enlight me ? :)
Guy Bedford
@guybedford
May 28 2015 11:18
@johnraz what do you mean by how it is covered?
Jonathan Liuti
@johnraz
May 28 2015 11:18
well I was looking at how to actually enable it
but found some github issues where you answered my question :)
seems to be import 'core-js/shim’;
Guy Bedford
@guybedford
May 28 2015 11:18
yes exactly
Jonathan Liuti
@johnraz
May 28 2015 11:18
\o/
Guy Bedford
@guybedford
May 28 2015 11:19
yes will aim to document that better
Jonathan Liuti
@johnraz
May 28 2015 11:19
yep - so far it makes me look geekier than ever when trying to push it to my team mates
Guy Bedford
@guybedford
May 28 2015 11:19
haha, well good luck with that!
Jonathan Liuti
@johnraz
May 28 2015 11:20
I actually switched from a 1 file with 2000 loc to ~10 modules in 2 days
I think they will see the advantage :D
Guy Bedford
@guybedford
May 28 2015 11:20
nice
Jonathan Liuti
@johnraz
May 28 2015 11:21
oh btw did you get in touch with the changelog team ?
Guy Bedford
@guybedford
May 28 2015 11:21
no, which team was that?
Jonathan Liuti
@johnraz
May 28 2015 11:21
I made a proposal of show a while ago about jspm
wait will give you the link
thechangelog/ping#170
there you go
Guy Bedford
@guybedford
May 28 2015 11:24
nice ,thanks for suggesting it
Jonathan Liuti
@johnraz
May 28 2015 11:24
np
Jonathan Liuti
@johnraz
May 28 2015 13:04
Mmm I’m struggling with IE8 (I know, I know …) - does give me a ‘expected identifier’ error
    exports.bundle = function(loads, opts) {
      var loader = this;
      if (loader.buildCSS === false)
        return '';
      return loader.import('./css-builder', {name: module.id}).then(function(builder) {
        return builder.call(loader, loads, opts);
      });
    };
the issue seems to be around the return loader.import('./css-builder', {name: module.id}).then(function(builder)
Jonathan Liuti
@johnraz
May 28 2015 13:17
switching to buildCSS=true doesnt raise the error
Jonathan Liuti
@johnraz
May 28 2015 13:38
systemjs/plugin-css#38
I think it should be enough for this one ;)
ok next issue (still talking to myself :D), indexOf is not an object ^^
Jonathan Liuti
@johnraz
May 28 2015 13:46
If someone knows where this might be coming from
if (typeof indexOf == 'undefined')
    indexOf = Array.prototype.indexOf;
which is obviously wrong in IE8
k found it
it seems to be fixed in master
Jonathan Liuti
@johnraz
May 28 2015 13:55
@guybedford can you give me a hint here on how to get this working ? I see the templates are in 2 different places now?
not sure how to force the right global-helper.js to be used
Guy Bedford
@guybedford
May 28 2015 14:25
@johnraz are you running an sfx bundle?
Jonathan Liuti
@johnraz
May 28 2015 14:27
yes sir
I replaced lib/templates/global-helper.js with templates/global-helper.js
and it seems to be ok
but thats a massive brute force :D
Guy Bedford
@guybedford
May 28 2015 14:29
are you running master?
lib/templates/global-helper.js isn't supposed to be there actually
not sure how that was getting loaded in
Jonathan Liuti
@johnraz
May 28 2015 14:29
nope i’m on 10.6
Guy Bedford
@guybedford
May 28 2015 14:30
ah right
Jonathan Liuti
@johnraz
May 28 2015 14:30
and I switched over files :)
I’m not even sure how to properly run master
I tried npm install github:systemjs/systemjs#master --save-dev
but is sticks to 10.6
Guy Bedford
@guybedford
May 28 2015 14:31
strange
it still has 10.6 in the package.json which may explain
Jonathan Liuti
@johnraz
May 28 2015 14:31
haaa maybe thats why
Guy Bedford
@guybedford
May 28 2015 14:31
actually you need github:systemjs/builder on master for this
Jonathan Liuti
@johnraz
May 28 2015 14:32
only that part ?
there is no deps with systemJS itself ?
Guy Bedford
@guybedford
May 28 2015 14:32
I mean they should go together
Jonathan Liuti
@johnraz
May 28 2015 14:32
ha yea yea
Guy Bedford
@guybedford
May 28 2015 14:32
ESML, SystemJS, builder, etc etc
Jonathan Liuti
@johnraz
May 28 2015 14:32
the all stack indeed
do you plan to release that soon
if so, I can live with my hack for a few
Guy Bedford
@guybedford
May 28 2015 14:39
as soon as I can, but can't rush this unfortunately, and testing and docs always takes longer than expected
Jonathan Liuti
@johnraz
May 28 2015 14:39
no problem - I will make my way through
Davis Kim
@davis
May 28 2015 18:34
how are you guys deploying your apps?
SFX?
Rob Wormald
@robwormald
May 28 2015 19:13
I had TS working beautifully until I changed something and now I'm totally confused. Think I'll wait a week
Davis Kim
@davis
May 28 2015 22:09
._.
does anyone have any apps in production with system js?
Davis Kim
@davis
May 28 2015 22:19
should i just add builder stuff to my gulpfile?
Davis Kim
@davis
May 28 2015 22:42
okay that wasn't so bad :)