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 }}
Repository navigation
map config sometimes improperly applied to loader resource name #47
expected output: modules/constants/foo
actual output: loader!modules/constants/foo
if the map is changed to something different like {'*': {'modules/constants': 'loader!constants'}} the unexpected map application seems not to apply (and in which case the output of the example is constants/foo instead).
This is definitely an issue: the module ID is getting resolved twice with a map config, which is incorrect. It affects map items that use a loader and the first non-loader part of the ID is the same as the value before it.
I am not sure yet how to fix it yet. I have been away from the code long enough that I think it will take a larger change to fix. No quick and easy fix. Will leave this open to track the issue, but I do not expect to resolve it in the near future.
It affects map items that use a loader and the first non-loader part of the ID is the same as the value before it.
my guess is that while this is a situation that shows the bug, it's not the only one - doesn't this mean that all resource names are going through the map when they should not be? so e.g. if I load loader!foo and there's a map entry for foo, e.g. map = {"*": {foo: "bar"}} I think I'd end up loading loader!bar in the end (which is also incorrect)
Activity
jrburke commentedon Nov 26, 2018
This is definitely an issue: the module ID is getting resolved twice with a map config, which is incorrect. It affects map items that use a loader and the first non-loader part of the ID is the same as the value before it.
I am not sure yet how to fix it yet. I have been away from the code long enough that I think it will take a larger change to fix. No quick and easy fix. Will leave this open to track the issue, but I do not expect to resolve it in the near future.
jrburke commentedon Nov 26, 2018
Test file to add to show the error in tests at
tests/mapConfigPluginMultiSegment.html:dgoldstein0 commentedon Nov 28, 2018
my guess is that while this is a situation that shows the bug, it's not the only one - doesn't this mean that all resource names are going through the
mapwhen they should not be? so e.g. if I loadloader!fooand there's a map entry for foo, e.g.map = {"*": {foo: "bar"}}I think I'd end up loadingloader!barin the end (which is also incorrect)