These are chat archives for systemjs/systemjs

11th
Mar 2015
Matthew Phillips
@matthewp
Mar 11 2015 00:16 UTC
Circular dependencies are allowed in AMD and ES6 at least
I'm not sure about commonjs
The reason is commonjs exports a single dependency
@guybedford can answer when he's around
Guy Bedford
@guybedford
Mar 11 2015 14:56 UTC
@matthewp that's not a SystemJS or Es6 module loader error
cycles are supported fine in commonjs exactly as in Node
Matthew Phillips
@matthewp
Mar 11 2015 14:58 UTC
do you mean the error message is not comming from systemjs/es6ml?
Guy Bedford
@guybedford
Mar 11 2015 14:59 UTC
@AlistairB building directly from CDN is not currently supported. There is actually an issue at systemjs/builder#97 where I believe they were looking to do something similar. We can certainly look at supporting this in future but for now it may be better to manually download first as part of a wider build script.
yes exactly.
@matthewp ^
Alex
@whitecolor
Mar 11 2015 15:45 UTC
@guybedford so what can it be if not loader? Error: Cyclic dependency: "models/mymodel" ?
Zach Cregan
@zcregan
Mar 11 2015 17:36 UTC
Any way to force SystemJS to run an import through cjs and babel transpilation?
I'm trying to import a JSX file from an external NPM package. I've only been able to get CommonJS transforms or Babel transforms, but not both...
Matthew Phillips
@matthewp
Mar 11 2015 17:40 UTC
babel is only loaded when there is es6
you could do that with a custom extension
however....
if you are using babel why not just use es6?
Zach Cregan
@zcregan
Mar 11 2015 17:43 UTC
It's from an external npm package
Matthew Phillips
@matthewp
Mar 11 2015 17:44 UTC
oh
yeah, a custom extension then
Zach Cregan
@zcregan
Mar 11 2015 17:44 UTC
I've tried going the custom plugin route, but there appears to be issues importing Babel.js through a plugin... So I thought I tried going through babelOptions instead... I'm running into issues both ways : (
Matthew Phillips
@matthewp
Mar 11 2015 17:45 UTC
what is the issue importing through a plugin?
if all you want is jsx you are probably better off using a jsx plugin
It works through the browser, but throws a super cryptic error when trying to bundle.
The problem with the native Facebook React-Toolkit JSX plugin is that it has terrible ES6 support.
Matthew Phillips
@matthewp
Mar 11 2015 17:48 UTC
oh, i'm not really familiar with the systemjs builder
Zach Cregan
@zcregan
Mar 11 2015 17:48 UTC
I'm just trying to get ES6 with JSX. Babel handles it beautifully, I just haven't been able to get a full workflow working with Babel+JSX+SystemJS
Matthew Phillips
@matthewp
Mar 11 2015 17:49 UTC
sorry, wish i could help :(
Zach Cregan
@zcregan
Mar 11 2015 17:50 UTC
Thanks anyway
Charandas
@charandas
Mar 11 2015 18:01 UTC
Does anyone know if its possible to have an es6 module be global throught meta configuration: or is global strictly for ES5 code?
Dave Ackerman
@dmackerman
Mar 11 2015 18:30 UTC
anyone using systemjs with Angular?