| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 60490f4 commit 624ed0e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -433,7 +433,7 @@ function resolveBasePath(basePath, exts, isMain, trailingSlash, request) { | |||
| 433 | 433 | ||
| 434 | 434 | function trySelf(parentPath, isMain, request) { | |
| 435 | 435 | const { data: pkg, path: basePath } = readPackageScope(parentPath) || {}; | |
| 436 | - if (!pkg || 'exports' in pkg === false) return false; | ||
| 436 | + if (!pkg || pkg.exports === undefined) return false; | ||
| 437 | 437 | if (typeof pkg.name !== 'string') return false; | |
| 438 | 438 | ||
| 439 | 439 | let expansion; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments