fix(javascript): resolve root package exports arrays (#1046)

Co-authored-by: N0zoM1z0 <1705004398@qq.com>
This commit is contained in:
Alex
2026-10-08 12:45:21 +08:00
committed by GitHub
co-authored by N0zoM1z0
parent 03424ae91e
commit 53409ab196
3 changed files with 26 additions and 4 deletions
@@ -226,3 +226,7 @@ URI schemes are classified independently of local file names: a reference such
as `web3:app.js` remains external even when an artifact has that literal name.
Scheme characters may include digits after the initial letter; a relative path
such as `./web3:app.js` still names a local artifact.
Package `exports` fallback arrays are supported both at the top level and under
the root `"."` entry. The resolver selects targets in declared order using the
same conditional and invalid-entry handling as nested exports arrays.