Skip to content

Commit

Permalink
allow empty string if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 17, 2021
1 parent c82f084 commit 5c97bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/defaultResolver.ts
Expand Up @@ -105,7 +105,7 @@ function createPackageFilter(
filteredPkg = userFilter(filteredPkg, packageDir);
}

if (filteredPkg.main) {
if (filteredPkg.main != null) {
return filteredPkg;
}

Expand Down

0 comments on commit 5c97bf3

Please sign in to comment.