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 7c42612 commit d557f8b
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 @@ -30,7 +30,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 d557f8b

Please sign in to comment.