These are chat archives for systemjs/systemjs

8th
Jun 2015
Maeoll Kim
@abyss-outpost
Jun 08 2015 02:33
Is there a way to assign a System.import() function call to a variable? Or give it a name? I don't want to have to declare "import" at the top of my .js file
Jon Stevens
@lookfirst
Jun 08 2015 02:38
@guybedford I just upgraded to the latest systemjs builder from 0.10.x to 0.11.x and now I’m getting weird errors on stuff that was working fine before. Basically, it is trying to find files without a .js extension.
Dominic Chambers
@dchambers
Jun 08 2015 08:47
I just tried upgrading from 0.16.6 to 0.17.1 and am finding that System.get() now always seems to return undefined instead of the loaded bundle, but I don't see anything in the either the SystemJS or ES6 Module Loader release notes advising about this.
Anybody know what the status of System.get() is now?
Dominic Chambers
@dchambers
Jun 08 2015 10:03
Okay, so it's because the modules are now keyed by URL instead of a the pre-locate name, but what I can't figure out is a reliable way to perform that conversion myself?
Ignore me, this seems to work:
System.get(System.baseURL + 'my-module')
Guy Bedford
@guybedford
Jun 08 2015 11:07
@dchambers try System.get(System.normalizeSync('x'))
Dominic Chambers
@dchambers
Jun 08 2015 12:06
Thanks @guybedford, that's much nicer!
Mike Haas
@mikehaas763
Jun 08 2015 14:44
Does builder automatically use traceur for transpile?
Guy Bedford
@guybedford
Jun 08 2015 15:43
@mikehaas763 Traceur is the default for SystemJS yes
Mike Haas
@mikehaas763
Jun 08 2015 15:46
Yeah I just figured that out
Is it technically easier to have the builder do the compiling itself as opposed to having it use already compiled system.register module files?
Guy Bedford
@guybedford
Jun 08 2015 15:49
it's entirely up to the use case and what you find easiest
which in turn can depend on your development workflow
Mike Haas
@mikehaas763
Jun 08 2015 15:49
but right now the builder does not support that workflow right?
Guy Bedford
@guybedford
Jun 08 2015 15:50
the builder itself doesn't provide separate file compilation, but yes in future that is the plan
at the moment it still needs to be a simple custom gulp task to do that
Mike Haas
@mikehaas763
Jun 08 2015 15:52
I'm not sure if we're talking about the same thing? I'd like to just have babel itself compile my modules into system modules, then use something like systemjs/builder to bundle
but the input to the builder would be already compiled modules
carlosagsmendes
@carlosagsmendes
Jun 08 2015 19:01
How can I use the builder tool to build the bundles defined in my configuration? eg:
"bundles": { "knockout-bundle": [ "knockout" ] }
Guy Bedford
@guybedford
Jun 08 2015 20:10
@carlosagsmendes try following the example in https://github.com/systemjs/builder#basic-use
carlosagsmendes
@carlosagsmendes
Jun 08 2015 21:31
@guybedford I must have something wrong in my configuration because I can use the builder but the bundles are not created.