Skip to content

Commit

Permalink
Pass correct data property through.
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth committed Sep 4, 2018
1 parent a10e8e9 commit 9c2f6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Babelify.prototype._flush = function (callback) {
this.emit("error", err);
} else {
this.emit("babelify", result, this._filename);
var code = result !== null ? result.code : this._data;
var code = result !== null ? result.code : data;
this.push(code);
callback();
}
Expand Down

0 comments on commit 9c2f6bb

Please sign in to comment.