add back shouldIgnore check that went missing around 32f19aff99559e36c3d4fbb946af378a8126b8bf - closes #1696, fixes #1693

This commit is contained in:
Sebastian McKenzie 2015-06-05 22:43:32 +01:00
parent 295e69f8f8
commit b0442d0784

View File

@ -509,7 +509,11 @@ export default class File {
code = code + "";
try {
return callback();
if (this.shouldIgnore()) {
return this.makeResult({ code, ignored: true });
} else {
return callback();
}
} catch (err) {
if (err._babel) {
throw err;