Skip to content

Commit

Permalink
Merge pull request #65 from tlvince/64
Browse files Browse the repository at this point in the history
Guard against flow transform response
  • Loading branch information
developit committed Jan 25, 2018
2 parents 096b8ba + f9b6e02 commit 99746d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/flow-plugin.js
Expand Up @@ -5,8 +5,8 @@ export default function fixedFlow(options) {
return Object.assign({}, plugin, {
transform(code, id) {
let ret = plugin.transform(code, id);
if (ret.code===code) return null;
if (ret && ret.code===code) return null;
return ret;
}
});
}
}

0 comments on commit 99746d8

Please sign in to comment.