Skip to content

Commit 5ab6922

Browse files
committed
update document to describe opts._flags
1 parent b22b584 commit 5ab6922

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readme.markdown

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ to a module that is expected to follow this format:
150150

151151
``` js
152152
var through = require('through2');
153-
module.exports = function (file) { return through() };
153+
module.exports = function (file, opts) { return through() };
154154
```
155155

156156
You don't necessarily need to use the
@@ -206,6 +206,11 @@ and `ggg` gets `{"y":4}`:
206206
}
207207
```
208208

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+
209214
# usage
210215

211216
```

0 commit comments

Comments
 (0)