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 Feb 25, 2023
1 parent a3be70c commit 98be5c9
Show file tree
Hide file tree
Showing 2 changed files with 15 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
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98be5c9

Please sign in to comment.