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
{{ message }}
Map config duplicating alias replacement when alias, folder and script names match. #484
Thanks for all the help so far, this is the last issue for a while I hope! These are all related to getting plugins working smoothly, I'm not just trying to find things I promise.
If I include the map config:
{map: {'*': {'plugin': 'plugin/plugin'}}}
I see a request running to '/plugin/plugin/plugin.js' in the browser for a plugin load of the form plugin!.... I'm not sure of the internals of the map, but a request to 'plugin' would ideally resolve to 'plugin/plugin', not running the mapping twice. I can understand though if 'plugin/plugin' would return 'plugin/plugin/plugin' under this config.
Activity
jrburke commentedon Oct 2, 2012
Thanks! Great find. Fixed in latest dev2.1:
https://raw.github.com/jrburke/requirejs/dev2.1/require.js
https://raw.github.com/jrburke/r.js/dev2.1/dist/r.js
I also appreciate your feedback in general. You are really putting the plugins through their paces, which is good.
guybedford commentedon Oct 2, 2012
Great, thanks for fixing it so quickly. Unfortunately I already renamed my repos for volo!
Ok sure, will feel less slightly guilty posting these in future.
dcleao commentedon May 8, 2015
Should I understand from this issue that a map configuration cannot be applied twice? I mean, for the following config:
requesting
ayieldsb, instead ofc?(independently of being plugins or not)
Thanks
jrburke commentedon May 8, 2015
correct, it is only done once: if a module asks for "a", it gets "b", not "c".
dcleao commentedon May 8, 2015
Thanks! It would be great if you could add this information to the requirejs site; at least I couldn't find it anywhere.