Skip to content

Commit

Permalink
feat(config): extends option tries to require("") if is a string inst…
Browse files Browse the repository at this point in the history
…ead of an object
  • Loading branch information
oscard0m committed Nov 27, 2021
1 parent 315be5e commit 6731ec6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6731ec6

Please sign in to comment.