Skip to content

Commit 3265233

Browse files
committed
Merge pull request #35 from substack/pkgdir
call the packageFilter() with the pkgdir
2 parents c32b867 + 32c2d3e commit 3265233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ function resolve(id, opts, cb) {
155155
extensions: opts.extensions,
156156
basedir: base,
157157
package: opts.package,
158-
packageFilter: function(info) {
159-
if (opts.packageFilter) info = opts.packageFilter(info);
158+
packageFilter: function(info, pkgdir) {
159+
if (opts.packageFilter) info = opts.packageFilter(info, pkgdir);
160160

161161
// support legacy browserify field
162162
if (typeof info.browserify === 'string' && !info.browser) {

0 commit comments

Comments
 (0)