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
everything works will if I do only require('jquery') or require('vendor/jquery'). But if I happen use both paths in different parts of the code almond doesn't produce any output? Is this expected?
The text was updated successfully, but these errors were encountered:
This is considered a misconfiguration: the same module ID should be used throughout the source. If that is not possible then the map config should be used instead of paths config.
Unfortunately this misconfiguration is hard to detect up front, so require.js does not generate an error about it. I would like to have xrayquire do it, but I have not gotten to it. The r.js optimizer in 2.1.9 will give an error for this case during a build though.
Closing here, as adding code to detect this would bloat the library, hoping tools like xrayquire can pick up the slack.
I noticed that when setting up an alias such as:
paths: {
'jquery': 'vendor/jquery'
}
everything works will if I do only require('jquery') or require('vendor/jquery'). But if I happen use both paths in different parts of the code almond doesn't produce any output? Is this expected?
The text was updated successfully, but these errors were encountered: