These are chat archives for systemjs/systemjs

24th
Jun 2016
Rob Eisenberg
@EisenbergEffect
Jun 24 2016 01:29
Thank you!
I'll give it a try.
Michael Bøcker-Larsen
@mblarsen
Jun 24 2016 05:28
ffvikbgtj
Peter Uithoven
@peteruithoven
Jun 24 2016 13:25
My colleague has been battling with Web Workers in SystemJS and he's trying to make a loader plugin that makes working with web workers easier, we're very curious what you guys think
systemjs/systemjs#1330
Dody Gunawinata
@dodyg
Jun 24 2016 13:53
I can't manage to get SystemJs to work. I have a simple bundle (http://pastebin.com/DGepJdmf) and the following lines
<script src="/scripts/system.js"></script>
    <script>
      // set our baseURL reference path
      System.config({
        baseURL: '/scripts'
      });
      // loads /scripts/app.js
      System.import('app.js').then(function(app){
       console.debug(app)
      }, console.error.bind(console));
</script>
app.js is loaded but the simple alert() in app.js is never executed
Peter Uithoven
@peteruithoven
Jun 24 2016 13:57
You've verified this with the network panel in your browser? Did it call console.debug(app)?
What does app.js look like?
Dody Gunawinata
@dodyg
Jun 24 2016 13:58
console.debug(app) shows { }
app.js
```
It is a bundle from TypeScript from two files (common.ts and app.ts) so it has two System.register
My question is how I can tell SystemJs which module is the entry point.
Peter Uithoven
@peteruithoven
Jun 24 2016 14:09
So you're not using SystemJS to transpile? You're doing that beforehand?
Dody Gunawinata
@dodyg
Jun 24 2016 14:10
Yup. TypeScript 1.8 produces the output to a single file.
Peter Uithoven
@peteruithoven
Jun 24 2016 14:10
But isn't it recommended to give SystemJS Typescript as transpiler and have it handle that for you?
Dody Gunawinata
@dodyg
Jun 24 2016 14:12
If the bundled file is correct, why would that matter?
Peter Uithoven
@peteruithoven
Jun 24 2016 14:14
I've never used SystemJS without JSPM (because why would I?) and I'm not sure there is anything in you bundle that initiales that app module
System.import is probably for importing modules, you're importing a transpiled bundle, with two modules.
Dody Gunawinata
@dodyg
Jun 24 2016 14:27
systemjs/systemjs#1174
Dody Gunawinata
@dodyg
Jun 24 2016 14:39
So you are right - I simply just needed to load the linked file directly and called System.import
<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <script src="/horizon/horizon.js"></script>
    <script src="/scripts/system.js"></script>
    <script src="/scripts/app.js"></script>
    <script>
      System.import('app').then(function(app){
       console.debug(app)
      }, console.error.bind(console));
</script>
  </head>
  <body>
   <marquee direction="left"><h1></h1></marquee>
  </body>
</html>
Peter Uithoven
@peteruithoven
Jun 24 2016 14:40
nice
playing with horizon I see, pretty interesting stuff that is
Dody Gunawinata
@dodyg
Jun 24 2016 14:42
I can begin now that I figure out how to load the named module :)
Peter Uithoven
@peteruithoven
Jun 24 2016 15:44

@guybedford In the 0.17 guide, in the linking page you mention:

Instead of installing our package link in the previous publish step, we can link it with:
What do you mean with package link and previous publish step?

Allen Hendricks
@allencoded
Jun 24 2016 17:08
does systemjs have any known IE bugs currently?
Scott Bowers
@sbbowers__twitter
Jun 24 2016 21:11
Is transcluded content parsed/constructed before or after transclusion?