Skip to content
Permalink
Browse files

Include 'caller' metadata in Babel transform calls.

  • Loading branch information...
loganfsmyth committed Sep 4, 2018
1 parent 6533059 commit d57bb167bf521675af68f1fd9d9e21f4adde9263
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.js
@@ -34,7 +34,11 @@ function Babelify(filename, opts) {
stream.Transform.call(this);
this._data = "";
this._filename = filename;
this._opts = Object.assign({filename: filename}, opts);
this._opts = Object.assign({filename: filename}, opts, {
caller: Object.assign({
name: "babelify",
}, opts.caller),
});
}

Babelify.prototype._transform = function (buf, enc, callback) {

0 comments on commit d57bb16

Please sign in to comment.
You can’t perform that action at this time.