enhanced-resolve
Advanced tools
Comparing version 5.14.1 to 5.15.0
@@ -53,3 +53,4 @@ /* | ||
/** @typedef {{[k: string]: string|string[] }} ExtensionAliasOptions */ | ||
/** @typedef {{apply: function(Resolver): void} | function(this: Resolver, Resolver): void} Plugin */ | ||
/** @typedef {false | 0 | "" | null | undefined} Falsy */ | ||
/** @typedef {{apply: function(Resolver): void} | (function(this: Resolver, Resolver): void) | Falsy} Plugin */ | ||
@@ -661,3 +662,3 @@ /** | ||
(plugin).call(resolver, resolver); | ||
} else { | ||
} else if (plugin) { | ||
plugin.apply(resolver); | ||
@@ -664,0 +665,0 @@ } |
{ | ||
"name": "enhanced-resolve", | ||
"version": "5.14.1", | ||
"version": "5.15.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -56,3 +56,3 @@ "description": "Offers a async require.resolve function. It's highly configurable.", | ||
"pretest": "yarn lint", | ||
"spelling": "cspell \"**/*.*\"", | ||
"spelling": "cspell \"**\"", | ||
"test:only": "jest", | ||
@@ -66,2 +66,3 @@ "test:watch": "yarn test:only -- --watch", | ||
"lint-staged": { | ||
"*": "cspell --no-must-find-files", | ||
"*.js": "eslint --cache" | ||
@@ -68,0 +69,0 @@ }, |
@@ -284,2 +284,7 @@ /* | ||
type Plugin = | ||
| undefined | ||
| null | ||
| false | ||
| "" | ||
| 0 | ||
| { apply: (arg0: Resolver) => void } | ||
@@ -286,0 +291,0 @@ | ((this: Resolver, arg1: Resolver) => void); |
187232
5920