These are chat archives for systemjs/systemjs

10th
Dec 2015
Will Prater
@wprater
Dec 10 2015 02:15
how do you generally use globalDefs for dead code removal? since I cannot set random glonals in ES6 modules, they’ll throw exceptions
jsut wanted to try to parse out some simple config for production use cases
Will Prater
@wprater
Dec 10 2015 03:52
looks like conditional builds will give me want I want.
but I cannot seme to set a default set of conditions when using buildStatic
      .buildStatic('lib/main.js', 'dist/app.js', {
        conditions: {
          'ENV|environment': 'production'
        },
does not seem to set up some defaults..
Will Prater
@wprater
Dec 10 2015 04:00
getting errors such as [TypeError: No resolution found at all for condition data/initial-states.#{ENV.production.js|environment}.js.]
Murhaf Sousli
@MurhafSousli
Dec 10 2015 11:23
hi, how can I add rxjs in system.js ?
<script>
      System.config({
        packages: {'app': {defaultExtension: 'js'}}
      });
      System.import('app/main');
    </script>
Peter Uithoven
@peteruithoven
Dec 10 2015 11:41
@MurhafSousli using jspm install? What do you mean exactly?
Murhaf Sousli
@MurhafSousli
Dec 10 2015 11:42
@peteruithoven I already have rxjs in node_module directory
I want to import it so I can use it in my app
Peter Uithoven
@peteruithoven
Dec 10 2015 11:46
@MurhafSousli I'd like to help, but I'm not sure I know the answer. I don't think SystemJs can load directly from node_modules
Murhaf Sousli
@MurhafSousli
Dec 10 2015 11:49
@peteruithoven thank you