Skip to content

Commit

Permalink
Fix the resolving of babelrc when extends not set (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Feb 25, 2018
1 parent d7256ee commit d247a36
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ module.exports = function loader(source, inputSourceMap) {
"https://babeljs.io/docs/core-packages/#options",
);
}
if (options.babelrc !== false && options.extends) {
babelrc = exists(fs, options.extends)
? options.extends
: rc(fs, path.dirname(filename));
if (options.babelrc !== false) {
babelrc =
options.extends && exists(fs, options.extends)
? options.extends
: rc(fs, path.dirname(filename));
}

if (babelrc) {
Expand Down

0 comments on commit d247a36

Please sign in to comment.