@@ -1115,21 +1115,21 @@ The resolver can throw the following errors:
11151115> ** PACKAGE \_SELF \_RESOLVE ** (_packageName_, _packageSubpath_, _parentURL_).
11161116> 10. If _selfUrl_ is not ** undefined ** , return _selfUrl_.
11171117> 11. While _parentURL_ is not the file system root,
1118- > 1. Let _packageURL_ be the URL resolution of _" node_modules /" _
1119- > concatenated with _packageSpecifier_, relative to _parentURL_.
1120- > 2. Set _parentURL_ to the parent folder URL of _parentURL_.
1121- > 3. If the folder at _packageURL_ does not exist, then
1122- > 1. Continue the next loop iteration.
1123- > 4. Let _pjson_ be the result of ** READ \_PACKAGE \_JSON ** (_packageURL_).
1124- > 5. If _pjson_ is not ** null ** and _pjson_ ._exports_ is not ** null ** or
1125- > ** undefined ** , then
1126- > 1. Return the result of ** PACKAGE \_EXPORTS \_RESOLVE ** (_packageURL_,
1127- > _packageSubpath_, _pjson .exports_ , _defaultConditions_).
1128- > 6. Otherwise, if _packageSubpath_ is equal to _" ." _, then
1129- > 1. If _pjson .main_ is a string, then
1130- > 1. Return the URL resolution of _main_ in _packageURL_.
1131- > 7. Otherwise,
1132- > 1. Return the URL resolution of _packageSubpath_ in _packageURL_.
1118+ > 1. Let _packageURL_ be the URL resolution of _" node \_ modules /" _
1119+ > concatenated with _packageSpecifier_, relative to _parentURL_.
1120+ > 2. Set _parentURL_ to the parent folder URL of _parentURL_.
1121+ > 3. If the folder at _packageURL_ does not exist, then
1122+ > 1. Continue the next loop iteration.
1123+ > 4. Let _pjson_ be the result of ** READ \_PACKAGE \_JSON ** (_packageURL_).
1124+ > 5. If _pjson_ is not ** null ** and _pjson_ ._exports_ is not ** null ** or
1125+ > ** undefined ** , then
1126+ > 1. Return the result of ** PACKAGE \_EXPORTS \_RESOLVE ** (_packageURL_,
1127+ > _packageSubpath_, _pjson .exports_ , _defaultConditions_).
1128+ > 6. Otherwise, if _packageSubpath_ is equal to _" ." _, then
1129+ > 1. If _pjson .main_ is a string, then
1130+ > 1. Return the URL resolution of _main_ in _packageURL_.
1131+ > 7. Otherwise,
1132+ > 1. Return the URL resolution of _packageSubpath_ in _packageURL_.
11331133> 12. Throw a _Module Not Found_ error.
11341134
11351135** PACKAGE \_SELF \_RESOLVE ** (_packageName_, _packageSubpath_, _parentURL_)
@@ -1241,7 +1241,7 @@ _internal_, _conditions_)
12411241> 1. Return **PACKAGE\_RESOLVE**(_target_ with every instance of
12421242> _"\*"_ replaced by _subpath_, _packageURL_ + _"/"_).
12431243> 2. Return **PACKAGE\_RESOLVE**(_target_ + _subpath_,
1244- > _packageURL_ + _"/"_)_ .
1244+ > _packageURL_ + _"/"_).
12451245> 2. Otherwise, throw an _Invalid Package Target_ error.
12461246> 3. If _target_ split on _"/"_ or _"\\"_ contains any _"."_, _".."_ or
12471247> _"node\_modules"_ segments after the first segment, case insensitive and
0 commit comments