enhanced-resolve
Advanced tools
Comparing version 0.4.10 to 0.4.11
@@ -774,6 +774,23 @@ /* | ||
for(var i = 0; i < packageMains.length; i++) { | ||
var field = packageMains[i]; | ||
if(content[field]) { | ||
mainModule = content[field]; | ||
break; | ||
if(Array.isArray(packageMains[i])) { | ||
var current = content; | ||
for(var j = 0; j < packageMains[i].length - 1; j++) { | ||
var field = packageMains[i][j]; | ||
current = content[field]; | ||
if(current === null || typeof current !== "object") { | ||
current = null; | ||
break; | ||
} | ||
} | ||
if(current) { | ||
mainModule = current; | ||
i = packageMains.length; | ||
break; | ||
} | ||
} else { | ||
var field = packageMains[i]; | ||
if(content[field]) { | ||
mainModule = content[field]; | ||
break; | ||
} | ||
} | ||
@@ -780,0 +797,0 @@ } |
{ | ||
"name": "enhanced-resolve", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78198
2393