Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /