Skip to content

Commit

Permalink
format shimming fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 30, 2014
1 parent 9749132 commit b68942a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ exports.compileDir = function(dir, options) {
return;
}

format = detected.format;

changed = true;
source = '"format ' + format + '";' + nl + source;
if (!format || detected.format != format) {
changed = true;
source = '"format ' + format + '";' + nl + source;
}
})

// apply map config
Expand Down Expand Up @@ -589,6 +589,11 @@ exports.compileDir = function(dir, options) {
return asp(fs.writeFile)(file + '.map', sourceMap);
});
})
}, function(e) {
if (e.code == 'EISDIR')
return;
else
throw e;
});
}, function(e) {
// rethrow an error that wasn't a file read error
Expand Down

0 comments on commit b68942a

Please sign in to comment.