git 3 years ago
parent
commit
68dc23ed8d
  1. 4
      src/core/6.inject.js

4
src/core/6.inject.js

@ -109,11 +109,11 @@
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var minVersion = dependencies[module.moduleId].minVersion, maxVersion = dependencies[module.moduleId].maxVersion;
if (minVersion && module.version < minVersion){
if (minVersion && (moduleInjection[module.moduleId].version || version) < minVersion){
findVersion = true;
break;
}
if(maxVersion && module.version > maxVersion){
if(maxVersion && (moduleInjection[module.moduleId].version || version) > maxVersion){
findVersion = true;
break;
}

Loading…
Cancel
Save