From 9c2f6bbd0e445f77d3227bebe4988a01cf6fb336 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Tue, 4 Sep 2018 16:42:20 -0700 Subject: [PATCH] Pass correct data property through. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9addae1..dc38285 100644 --- a/index.js +++ b/index.js @@ -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(); }