These are chat archives for systemjs/systemjs

9th
Apr 2016
Manuel Schweigert
@Manuel-S
Apr 09 2016 00:23
Hey folks
I'm trying to make an app accessible from both the root url / and a sub url /something
using the same config settings mostly. So I tried to System.config({paths: {'*': '../*'}}) after the config.js file is loaded, but that did not work
Manuel Schweigert
@Manuel-S
Apr 09 2016 00:43
anyone know how I could do that?
tried with baseUrl, but my javascript imports (./moduleId) do not care about that
Jarosław Cimoch
@jcimoch
Apr 09 2016 13:51
Hi is there any example how to load jquery plugins via system.js ? I'm able to load jquery itself but i have problem to force load after jquery for example fullcalendar.js
Hoisel
@hoisel
Apr 09 2016 14:46
@jcimoch what kind of problem?
Jarosław Cimoch
@jcimoch
Apr 09 2016 17:00

@hoisel

 System.import('fullcallendar’);

and config looks like this:

System.config({
  baseURL: "/",

  paths: {
    'jquery': '../node_modules/jquery/dist/jquery.min.js',
    'moment': '../node_modules/moment/min/moment.min.js',
    'fullcallendar': '../node_modules/fullcalendar/dist/fullcalendar.min.js'
  },
  meta: {
    'jquery': {
      format: 'amd',
      exports: '$'
    },
    'fullcallendar': {deps: ['jquery']}
  },

  map: {
    "polymer": "../bower_components",
    "webcomponentsjs": "../bower_components/webcomponentsjs"
  }
});

but in runtime i do not have access to fullcalendar via $

Jarosław Cimoch
@jcimoch
Apr 09 2016 18:28
oh I think it's polymer specyfic thing, I just realized that script tags inside polymer template are omitted
Joel Hernández
@lifenautjoe
Apr 09 2016 20:20
Hey guys, got an issue and not really sure if it's a phantomjs or systemjs one, any kind of hints are appreciated. I'm testing with angular1, typescript,karma and jspm, everything runs perfectly on chrome but there's a eval error on PhantomJS on a SystemJS statement : (0, eval)(getSource(load)); on system.src.js , any suggestion?
Joel Hernández
@lifenautjoe
Apr 09 2016 20:48
Nevermind.. some library author doing { loader: () => $injector.invoke(loader) }
side topic, but anyone knows why would he want to do that and not just { loader: $injector.invoke(loader) }
and even better, why does the top one even runs on chrome ?