Skip to content

Commit

Permalink
Guard against flow transform response
Browse files Browse the repository at this point in the history
Closes #64.
  • Loading branch information
tlvince committed Jan 25, 2018
1 parent 096b8ba commit f9b6e02
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 f9b6e02

Please sign in to comment.