Skip to content

Commit d25c43a

Browse files
fix: Revert fix for breaking change in resolve package after they reverted the breaking change itself.
browserify/resolve@ca0fa41
1 parent c9dfa08 commit d25c43a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/packageUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ export function getPackageDependencies(packagePath: string, packageJson: Package
106106
export function resolvePackageDir(basedir: string, packageName: string) {
107107
let packagePath;
108108

109-
function packageFilter(pkg, pkgfile, pkgdir) {
109+
// In resolve() v2.x this callback has a different signature
110+
// function packageFilter(pkg, pkgfile, pkgdir) {
111+
function packageFilter(pkg, pkgdir) {
110112
packagePath = pkgdir;
111113
return pkg;
112114
}

0 commit comments

Comments
 (0)