Skip to content

Commit b22b584

Browse files
committed
pass module-deps options to transforms as opts._flags
1 parent f3114e1 commit b22b584

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) {
251251
trOpts = tr[1];
252252
tr = tr[0];
253253
}
254+
trOpts._flags = trOpts.hasOwnProperty('_flags') ? trOpts._flags : self.options;
254255
if (typeof tr === 'function') {
255256
var t = tr(file, trOpts);
256257
self.emit('transform', t, file);

0 commit comments

Comments
 (0)