These are chat archives for systemjs/systemjs

27th
Jul 2015
Sharon (Sean) Rolel
@Mosho1
Jul 27 2015 13:14
How are we handing conditional (polyfill) imports right now?
Mike Haas
@mikehaas763
Jul 27 2015 14:50
I'm trying to get system to compile with babel in my browser. The docs say "To load ES6, locate a transpiler in the base URL path...". What exactly does that mean?
Mike Haas
@mikehaas763
Jul 27 2015 14:58
To compile with babel in browser does anything other than including system.js setting transpiler to 'babel' need to be done to compile?
Micah Zoltu
@MicahZoltu
Jul 27 2015 15:09
@mikehaas763 If you go through the prompts during jspm init and say yes to transpiling and choose babel as your transpiler, then you don't need to do anything else other than load your modules with SystemJS.
I believe there is a way to re-prompt if you already did that with other values... I don't remember it though.
Mike Haas
@mikehaas763
Jul 27 2015 15:11
@Zoltu I'm not using jspm
I think I figured out what the problem was though
system wasn't recognizing my file being imported as an ES6 module (I believe it uses a regex for this). So it was never attempting to load babel and compile. I added an export to my file and that triggered it to be recognized as es6
Yep, looks like it requires an import or export to be detected as a javascript module https://github.com/systemjs/systemjs/blob/fb82141ac4507382ec8cc21f2139639c52135b8c/lib/esm.js#L6
Mike Haas
@mikehaas763
Jul 27 2015 19:51
What is the purpose of the global-helpers.js file in systemjs-builder and what configuration causes that file to be included in a bundle?
Mike Haas
@mikehaas763
Jul 27 2015 20:13
Also, is the mini loader implementation in sfx-core.js more similar to systemjs or es6-module-loader?
Will Prater
@wprater
Jul 27 2015 23:37
Is there something more to getting babel and JSX to play nice with SystemJs. I read the jsx plugin is deprecated.
Will Prater
@wprater
Jul 27 2015 23:46
ahh, issue was that I was not running jsom 0.16 beta so the 0.18 systemjs was not loading.