You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bundle command in that test repo fails because there is a './video' define( ) in the UMD module definition code, inside the package used by our app. In requirejs, a required module called ./video still matches the 'video' path in our require config. This is not the case in jspm, which interprets the relative path in the context of the module located in jspm_packages. This looks like well-defined behaviour in system's builder whilst Building the bundle tree, which uses traceModulehttps://github.com/systemjs/builder/blob/master/lib/trace.js#L26.
This isn't necessarily an issue, more a question for advice. When I encounter a module such as this, is there an elegant way to deal with these kinds of paths? For our jspm packages in github, I will update the path to 'video'. Would be grateful for any info, @guybedford !
The text was updated successfully, but these errors were encountered:
I was partway through trying the map configuration, which looked to be working, however it's not supported in curl, so I didn't get to fully test it (the config needs to work for both system and curl, at the moment). So I ended up making sure module names are consistent throughout, which is probably best anyway. Thanks @guybedford
Hi, I made a repro here to demonstrate the issue.
The bundle command in that test repo fails because there is a
'./video'
define( ) in the UMD module definition code, inside the package used by our app. In requirejs, a required module called./video
still matches the 'video' path in our require config. This is not the case in jspm, which interprets the relative path in the context of the module located in jspm_packages. This looks like well-defined behaviour in system's builder whilstBuilding the bundle tree
, which usestraceModule
https://github.com/systemjs/builder/blob/master/lib/trace.js#L26.This isn't necessarily an issue, more a question for advice. When I encounter a module such as this, is there an elegant way to deal with these kinds of paths? For our jspm packages in github, I will update the path to 'video'. Would be grateful for any info, @guybedford !
The text was updated successfully, but these errors were encountered: