Skip to content

Commit

Permalink
Make sure .babelrc is a file, not a directory (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored and danez committed Apr 21, 2017
1 parent aa485e4 commit dbec80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function(cache) {

if (!filename) { return false; }

cache[filename] = cache[filename] || fs.existsSync(filename);
cache[filename] = cache[filename] || (fs.existsSync(filename) && fs.statSync(filename).isFile());

return cache[filename];
};
Expand Down

0 comments on commit dbec80d

Please sign in to comment.