Using config in a RequireJS plugin
问题 I'm trying to write a RequireJS plugin that takes in the name of the module requested, dynamically figures out its path, then loads it. The logic to determine these paths is based on some specific business logic, so it's unlikely any existing plugins that do similar things will be useful to me. I initially tried to use the plugin's normalize method, but weird things were happening: normalize was being called twice, after which the load method was called with an empty string for the name. I