These are chat archives for systemjs/systemjs

5th
Nov 2015
Andrey Gubanov
@finom
Nov 05 2015 11:00
@/all does SystemJS and Builder support Babel 6?
System.paths['traceur'] = 'path/to/traceur.js'; Guess you cold do the same with babel to ensure your specific version..
Havent look what is uses default now..
@finom npm babel-core is 6.1.* now so... guess the answe is yes...
Johannes Harestad
@johanhar
Nov 05 2015 12:09
Hi. Is it possible to create two self executing bundles? One that contains only my app code, and one that contains only lib code? I've seen something like this: jspm bundle app/**/* - [app/**/*] dependency-bundle.js for the lib code, but not sure how I should go about the app code only bundle. :) Thanks
Per Svensson
@Psvensso
Nov 05 2015 12:10
just the opposite?
means "dont include this in my bundle" -> "- [app/*/]"
So for example jspm bundle app//* - [libs//*] app-bundle.js
Johannes Harestad
@johanhar
Nov 05 2015 12:12
Yeah :) I use self executing bundles for development. I want to build the lib code once, and then put a watch on my own code, and build only my code everytime I edit a file. Now I bundle everything each time I edit a file, and with the lib code, it takes over 6 seconds.
Of course, thanks :) I will try that. Is it possible to define several paths to libs? Like [libs/**/*, node_modules/**/*] with a comma like that?
Per Svensson
@Psvensso
Nov 05 2015 12:13
No... i have not got that to work...
Johannes Harestad
@johanhar
Nov 05 2015 12:13
Ah :( I see
Per Svensson
@Psvensso
Nov 05 2015 12:13
I did a gist on this a couple of weeks ago to help a friend... perhaps its usefull to you
Johannes Harestad
@johanhar
Nov 05 2015 12:13
I'll check it out, thanks
Per Svensson
@Psvensso
Nov 05 2015 12:14
Its the same use-case atleast
Johannes Harestad
@johanhar
Nov 05 2015 12:16

Do I need to think of anything else if including two bundles?

<script src="app.js"></script>
<script src="lib.js"></script>

Is going to work just fine or will the import/export/module-system get confused and not know about the second/other bundle you think?

Per Svensson
@Psvensso
Nov 05 2015 12:25
you want system.js, config.js libs.js then app.js in that order... for your dev... for your prod you bundle everything up in a SFX-bundle
its ofc a flavor if you should bundle app.js in dev or just lazy load them (System.import main js and let systemjs handle loading additional modules for you)...
Johannes Harestad
@johanhar
Nov 05 2015 12:30
Thanks :)
Per Svensson
@Psvensso
Nov 05 2015 12:37
Welcome, hope it works out for you :)
Narkluf
@narkluf
Nov 05 2015 17:16
hello, is there a channel for jspm?
specifically, can anyone point me to production workflows with jspm-cli? any ones other than the ones on the wiki?
also, what does dependency cache mean with jspm-cli?
Francis Paulin
@paulinfrancis
Nov 05 2015 17:41

Hi :)
I have the folder structure:

Project Root
---Foo
------Src
----------a.js  //define('Foo/a', () => {})
----------b.js  //define('Foo/b', ['Foo/a'], () => {})

config.js:

map: {
   Foo: 'Foo/src'
}

I'm trying to build a bundle, and in the configuration above, I get an empty bundle.

If I rename the Foo directory to something else (FooFolder), and update the config accordingly it works.

map: {
   Foo: 'FooFolder/src'
}

Can I somehow manage to map a foldername to 'itself', or will I have to rename the containing folder?