enhanced-resolve
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -31,2 +31,3 @@ /* | ||
const AppendPlugin = require("./AppendPlugin"); | ||
const RestrictionsPlugin = require("./RestrictionsPlugin"); | ||
const ResultPlugin = require("./ResultPlugin"); | ||
@@ -81,2 +82,4 @@ const ModuleAppendPlugin = require("./ModuleAppendPlugin"); | ||
const restrictions = options.restrictions || []; | ||
// Use this cache object to unsafely cache the successful requests | ||
@@ -311,2 +314,5 @@ let unsafeCache = options.unsafeCache || false; | ||
// resolved | ||
if (restrictions.length > 0) { | ||
plugins.push(new RestrictionsPlugin(resolver.hooks.resolved, restrictions)); | ||
} | ||
plugins.push(new ResultPlugin(resolver.hooks.resolved)); | ||
@@ -313,0 +319,0 @@ |
{ | ||
"name": "enhanced-resolve", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.", |
@@ -68,2 +68,3 @@ # enhanced-resolve | ||
| resolveToContext | false | Resolve to a context instead of a file | | ||
| restrictions | [] | A list of resolve restrictions | | ||
| fileSystem | | The file system which should be used | | ||
@@ -70,0 +71,0 @@ | resolver | undefined | A prepared Resolver to which the plugins are attached | |
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
90356
43
2993
123