@@ -1115,21 +1115,21 @@ The resolver can throw the following errors:
1115
1115
> ** PACKAGE \_SELF \_RESOLVE ** (_packageName_, _packageSubpath_, _parentURL_).
1116
1116
> 10. If _selfUrl_ is not ** undefined ** , return _selfUrl_.
1117
1117
> 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_.
1133
1133
> 12. Throw a _Module Not Found_ error.
1134
1134
1135
1135
** PACKAGE \_SELF \_RESOLVE ** (_packageName_, _packageSubpath_, _parentURL_)
@@ -1241,7 +1241,7 @@ _internal_, _conditions_)
1241
1241
> 1. Return **PACKAGE\_RESOLVE**(_target_ with every instance of
1242
1242
> _"\*"_ replaced by _subpath_, _packageURL_ + _"/"_).
1243
1243
> 2. Return **PACKAGE\_RESOLVE**(_target_ + _subpath_,
1244
- > _packageURL_ + _"/"_)_ .
1244
+ > _packageURL_ + _"/"_).
1245
1245
> 2. Otherwise, throw an _Invalid Package Target_ error.
1246
1246
> 3. If _target_ split on _"/"_ or _"\\"_ contains any _"."_, _".."_ or
1247
1247
> _"node\_modules"_ segments after the first segment, case insensitive and
0 commit comments