From 64f48a8643c6fac758633808809cb71e60fcda33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Berthommier?= Date: Wed, 6 Nov 2024 10:19:49 +0100 Subject: [PATCH 1/2] Allow to disable resolver --- utils/resolve.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/resolve.js b/utils/resolve.js index b332d2ec2..c1236d854 100644 --- a/utils/resolve.js +++ b/utils/resolve.js @@ -73,6 +73,10 @@ function resolverReducer(resolvers, map) { return map; } + if (resolvers === false) { + return map; + } + if (typeof resolvers === 'string') { map.set(resolvers, null); return map; @@ -80,6 +84,7 @@ function resolverReducer(resolvers, map) { if (typeof resolvers === 'object') { for (const key in resolvers) { + if (resolvers[key] === false) continue; map.set(key, resolvers[key]); } return map; From bed542bb7da8c88a126a95975d85263567d15156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Berthommier?= Date: Wed, 6 Nov 2024 15:58:16 +0100 Subject: [PATCH 2/2] Update resolve.js --- utils/resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/resolve.js b/utils/resolve.js index c1236d854..bb9031d16 100644 --- a/utils/resolve.js +++ b/utils/resolve.js @@ -84,7 +84,7 @@ function resolverReducer(resolvers, map) { if (typeof resolvers === 'object') { for (const key in resolvers) { - if (resolvers[key] === false) continue; + if (resolvers[key] === false) { continue; } map.set(key, resolvers[key]); } return map;