Skip to content

Commit

Permalink
Allow to disable resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
bertho-zero authored Nov 6, 2024
1 parent 67cc798 commit 64f48a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,18 @@ function resolverReducer(resolvers, map) {
return map;
}

if (resolvers === false) {
return map;

Check warning on line 77 in utils/resolve.js

View check run for this annotation

Codecov / codecov/patch

utils/resolve.js#L77

Added line #L77 was not covered by tests
}

if (typeof resolvers === 'string') {
map.set(resolvers, null);
return map;
}

if (typeof resolvers === 'object') {
for (const key in resolvers) {
if (resolvers[key] === false) continue;
map.set(key, resolvers[key]);
}
return map;
Expand Down

0 comments on commit 64f48a8

Please sign in to comment.