Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include 'caller' metadata in Babel transform calls.
  • Loading branch information
loganfsmyth committed Sep 4, 2018
1 parent 6533059 commit d57bb16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit d57bb16

Please sign in to comment.