Skip to content

Commit 98be5c9

Browse files
committed
feat(config): extends option tries to require("") if is a string instead of an object
1 parent a3be70c commit 98be5c9

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ var options = {
3030
};
3131

3232
if (!!config.extends) {
33-
options = merge(options, config.extends);
33+
options = merge(
34+
options,
35+
typeof config.extends == 'string' ? require(config.extends) : config.extends
36+
);
3437
}
3538

3639
(function(options) {

package-lock.json

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)