These are chat archives for systemjs/systemjs

9th
Aug 2017
Rūdolfs Vikmanis
@rvikmanis
Aug 09 2017 15:21
Any plugins using locate?
Can't find one
I want to rewrite the path of a module based on node module resolution algorithm. Do I have the right idea that locate can do this?
Nick George
@Izzmo
Aug 09 2017 16:04
I rewrote it to add a version to the end of it, but that's about it. @rvikmanis
Cristhian
@CristhianUNSa
Aug 09 2017 19:17
Hi ! How are you ? I'm having a big problem
Cristhian
@CristhianUNSa
Aug 09 2017 19:23
I have a global variable all over my project... it is called "System" :facepunch: .... So I have 2 options right now... Call SystemJS.import only once (SystemJs js file is loaded before my System definition, and what I want is HMR for React with jspm and SystemJS), and then it is overwritten by my global variable... this is working without hot reload (second call to SystemJS.import is not working)... But if I put SystemJS file script "definition" after my global variable, then my code is breaking right there...
how to workaround this? What i tried and didn't work is "deep cloning" SystemJS object
but it doesn't work
Rūdolfs Vikmanis
@rvikmanis
Aug 09 2017 21:04

I have a global variable all over my project... it is called "System" :facepunch: .... So I have 2 options right now... Call SystemJS.import only once (SystemJs js file is loaded before my System definition, and what I want is HMR for React with jspm and SystemJS), and then it is overwritten by my global variable... this is working without hot reload (second call to SystemJS.import is not working)... But if I put SystemJS file script "definition" after my global variable, then my code is breaking right there...

Can you refactor your project to not rely on a global "System"?