Skip to content

Commit

Permalink
Fix template loading when hidden files exist
Browse files Browse the repository at this point in the history
This made debugging babel#2352 confusing
because I had some vim swap files so it didn't load any of the
templates. (I assume this was the original intention.)
  • Loading branch information
sophiebits committed Sep 10, 2015
1 parent 3b301c8 commit 150720f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-core/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function loadTemplates(): Object {
}

for (var name of (fs.readdirSync(templatesLoc): Array)) {
if (name[0] === ".") return;
if (name[0] === ".") continue;

var key = path.basename(name, path.extname(name));
var loc = path.join(templatesLoc, name);
Expand Down

0 comments on commit 150720f

Please sign in to comment.