| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1121,8 +1121,7 @@ E('ERR_INVALID_PACKAGE_TARGET', | |||
| 1121 | 1121 | return `Invalid "exports" main target ${JSONStringify(target)} defined ` + | |
| 1122 | 1122 | `in the package config ${pkgPath}${sep}package.json${relError ? | |
| 1123 | 1123 | '; targets must start with "./"' : ''}`; | |
| 1124 | - } else if (typeof target === 'string' && target !== '' && | ||
| 1125 | - !StringPrototypeStartsWith(target, './')) { | ||
| 1124 | + } else if (relError) { | ||
| 1126 | 1125 | return `Invalid "exports" target ${JSONStringify(target)} defined for '${ | |
| 1127 | 1126 | StringPrototypeSlice(key, 0, -subpath.length || key.length)}' in the ` + | |
| 1128 | 1127 | `package config ${pkgPath}${sep}package.json; ` + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments