Skip to content

Commit 6731ec6

Browse files
committed
feat(config): extends option tries to require("") if is a string instead of an object
1 parent 315be5e commit 6731ec6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

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

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

3740
(function(options) {

0 commit comments

Comments
 (0)