These are chat archives for systemjs/systemjs

8th
Mar 2015
Guy Bedford
@guybedford
Mar 08 2015 10:58
@whitecolor that is a private API - best not to use it
Alex
@whitecolor
Mar 08 2015 12:07
@guybedford what is the best way to get the list of all loaded modules?
This message was deleted
Guy Bedford
@guybedford
Mar 08 2015 12:58
System.trace = true Then use System.loads
note that will keep all module sources in memory though
so if this is for production purposes it may be better to use something like loader registry iteration
Debjit Biswas
@debjitbis08
Mar 08 2015 13:29
Hi, Is there any JSX plugin that uses Babel? I am using JSX for a React independent project.
James Campos
@aeosynth
Mar 08 2015 14:32
babel natively supports jsx
it even supports non-react jsx
Debjit Biswas
@debjitbis08
Mar 08 2015 14:33
I wanted to use the babel with SystemJS to compile JSX files
the plugin-jsx library uses react-tools
James Campos
@aeosynth
Mar 08 2015 14:33
you can compile everything with babel
Debjit Biswas
@debjitbis08
Mar 08 2015 14:34
SystemJS has internally blacklisted JSX transformation when using Babel. Recommended way is to use a plugin for JSX
James Campos
@aeosynth
Mar 08 2015 14:36
compile first with babel
use systemjs after
i personally just un-blacklist jsx
Debjit Biswas
@debjitbis08
Mar 08 2015 14:40
How do you un-blacklist jsx?
Dan Harper
@danharper
Mar 08 2015 17:41
Seeing how JSX is blacklisted in Babel, I'm interested in the project's stance on other non-standard features enabled by transpilers? e.g. Annotations in Traceur, or async/await?
I see the issue with them is you want to use Traceur/Babel only for ES6 module support (makes sense) - so shouldn't they be restricted to just that? Then for other features we can run an additional pass ourselves with all features enabled?
But then, there's the speed issue of having to do the pass twice, so couldn't it just be unrestricted?
Alex
@whitecolor
Mar 08 2015 20:00
@danharper loader runs source though transpiler only if it detects that it is es6 https://github.com/systemjs/systemjs/blob/master/lib/extension-es6.js#L32
Vojtech Prikryl
@Aldredcz
Mar 08 2015 21:13
This message was deleted