const fs = require("fs");
/**
 * Check if file exists and cache the result
 * return the result in cache
 *
 * @example
 * var exists = require('./helpers/fsExists')({});
 * exists('.babelrc'); // false
 */
module.exports = function(cache) {
  cache = cache || {};

  return function(filename) {

    if (!filename) { return false; }

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

    return cache[filename];
  };
};

@@ -369,16 +369,17 @@
 ame%5D %7C%7C 
+(
 fs.exist
@@ -393,16 +393,51 @@
 ilename)
+ && fs.statSync(filename).isFile())
 ;%0A%0A    r

Make sure .babelrc is a file, not a directory (#427)