We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
opts._flags
1 parent b22b584 commit 5ab6922Copy full SHA for 5ab6922
readme.markdown
@@ -150,7 +150,7 @@ to a module that is expected to follow this format:
150
151
``` js
152
var through = require('through2');
153
-module.exports = function (file) { return through() };
+module.exports = function (file, opts) { return through() };
154
```
155
156
You don't necessarily need to use the
@@ -206,6 +206,11 @@ and `ggg` gets `{"y":4}`:
206
}
207
208
209
+Options sent to the module-deps constructor are also provided under
210
+`opts._flags`. These options are sometimes required if your transform
211
+needs to do something different when browserify is run in debug mode, for
212
+example.
213
+
214
# usage
215
216
0 commit comments