Skip to content

Commit 9c2f6bb

Browse files
committed
Pass correct data property through.
1 parent a10e8e9 commit 9c2f6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Babelify.prototype._flush = function (callback) {
5656
this.emit("error", err);
5757
} else {
5858
this.emit("babelify", result, this._filename);
59-
var code = result !== null ? result.code : this._data;
59+
var code = result !== null ? result.code : data;
6060
this.push(code);
6161
callback();
6262
}

0 commit comments

Comments
 (0)