Skip to content

Commit d557f8b

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

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
@@ -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) {

0 commit comments

Comments
 (0)