These are chat archives for systemjs/systemjs

5th
Jul 2017
Ricky Blankenaufulland
@ZoolWay
Jul 05 2017 05:19
@Izzmo nope, it is more that the lib gridstack has an optional submodule. that submodule requires its parent but gets an empty object for that while window already contains the parent module.
Ricky Blankenaufulland
@ZoolWay
Jul 05 2017 07:04
to fix this I have hacked the submodule to take the parent from window instead of the supplied value.
nevertheless, looks like I got it working correctly! I updated the repo. I did not load the parent as AMD module and by specifying that too, the depedency in the submodule got correctly fullfilled.
Nick George
@Izzmo
Jul 05 2017 13:05
@ZoolWay I'm guessing the module expects that this submodule already be in place? I know this happens with libraries like jQuery and QUnit.. QUnit just expects jQuery to already exist =/
Ricky Blankenaufulland
@ZoolWay
Jul 05 2017 13:07
I would say the other way around and the module was only provided to the submodule when both have the same format (at least configured in jspm.config.js). I am glad it works now but still not sure how if IU understand everything. Guess we should reduce to just one module format out there, might help :D
Nick George
@Izzmo
Jul 05 2017 13:10
@ZoolWay ah, well glad you were able to figure it out!
Ricky Blankenaufulland
@ZoolWay
Jul 05 2017 13:11
yeah. thanks for listening anyways. guy is not too often around but systemjs is a nice piece though ^^
Patricio Ferreira
@kuakman
Jul 05 2017 23:36
Hello everyone, I have been dealing with an issue related to using systemjs to load packages that are part of a bundle. Here a screenshot
I know I’m missing something either, while bundling using jspm or the systtem configuration
Patricio Ferreira
@kuakman
Jul 05 2017 23:42
So, for example in my unit test, I'm trying to import react, so got the directive bundles in my config.js so the libraries/libraries-test.js (bundle) loads first and the it should map to the ‘nom:react@15.6.1.js’ defined inside the bundle but it fails.
I guess because the request has been made with the path including the “js” and the entry inside the bundle has been normalized to the path without the .js extension.
But even If I’m able to solve the mapping problem, the declaration inside the bundle will not use the full path. It’s actually declared as this System.registerDynamic('npm:react@15.6.1/react.js’, so I guess it will not match
Patricio Ferreira
@kuakman
Jul 05 2017 23:52
Does anyone have experience doing “pre” bundling of third party libraries to streamline the job of systemjs to not make tons of requests and load all dependencies (and subdependencies)?