Skip to content

Commit 32c2d3e

Browse files
author
James Halliday
committed
call the packageFilter() with the pkgdir
1 parent c32b867 commit 32c2d3e

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)