enhanced-resolve
Advanced tools
Comparing version 5.16.1 to 5.17.0
@@ -467,3 +467,2 @@ /* | ||
const [mapping, conditions, j] = lookup[lookup.length - 1]; | ||
const last = conditions.length - 1; | ||
@@ -473,8 +472,3 @@ for (let i = j; i < conditions.length; i++) { | ||
// assert default. Could be last only | ||
if (i !== last) { | ||
if (condition === "default") { | ||
throw new Error("Default condition should be last one"); | ||
} | ||
} else if (condition === "default") { | ||
if (condition === "default") { | ||
const innerMapping = mapping[condition]; | ||
@@ -481,0 +475,0 @@ // is nested |
{ | ||
"name": "enhanced-resolve", | ||
"version": "5.16.1", | ||
"version": "5.17.0", | ||
"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
210162
6738