From 6731ec6719abcc42ddb3e5ecca9d9426e60cb079 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Sat, 27 Nov 2021 19:13:20 +0100 Subject: [PATCH] feat(config): extends option tries to require("") if is a string instead of an object --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1b71efc6..afb9bfbf 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,10 @@ var options = { }; if (!!config.extends) { - options = merge(options, config.extends); + options = merge( + options, + typeof config.extends == 'string' ? require(config.extends) : config.extends + ); } (function(options) {