@@ -667,7 +667,7 @@ _isMain_ is **true** when resolving the Node.js application entry point.
667
667
<details>
668
668
<summary>Resolver algorithm specification</summary>
669
669
670
- **ESM_RESOLVE(_specifier_, _parentURL_, _isMain_)**
670
+ **ESM_RESOLVE** (_specifier_, _parentURL_, _isMain_)
671
671
> 1. Let _resolvedURL_ be **undefined**.
672
672
> 1. If _specifier_ is a valid URL, then
673
673
> 1. Set _resolvedURL_ to the result of parsing and reserializing
@@ -687,7 +687,7 @@ _isMain_ is **true** when resolving the Node.js application entry point.
687
687
> 1. Let _format_ be the result of **ESM_FORMAT**(_resolvedURL_, _isMain_).
688
688
> 1. Load _resolvedURL_ as module format, _format_.
689
689
690
- PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_)
690
+ ** PACKAGE_RESOLVE** (_packageSpecifier_, _parentURL_)
691
691
> 1. Let _packageName_ be *undefined*.
692
692
> 1. Let _packageSubpath_ be *undefined*.
693
693
> 1. If _packageSpecifier_ is an empty string, then
@@ -726,7 +726,7 @@ PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_)
726
726
> 1. Return the URL resolution of _packageSubpath_ in _packageURL_.
727
727
> 1. Throw a _Module Not Found_ error.
728
728
729
- PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_)
729
+ ** PACKAGE_MAIN_RESOLVE** (_packageURL_, _pjson_)
730
730
> 1. If _pjson_ is **null**, then
731
731
> 1. Throw a _Module Not Found_ error.
732
732
> 1. If _pjson.main_ is a String, then
@@ -743,7 +743,7 @@ PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_)
743
743
> 1. Throw an _Unsupported File Extension_ error.
744
744
> 1. Return _legacyMainURL_.
745
745
746
- **ESM_FORMAT(_url_, _isMain_)**
746
+ **ESM_FORMAT** (_url_, _isMain_)
747
747
> 1. Assert: _url_ corresponds to an existing file.
748
748
> 1. Let _pjson_ be the result of **READ_PACKAGE_SCOPE**(_url_).
749
749
> 1. If _url_ ends in _".mjs"_, then
@@ -760,7 +760,7 @@ PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_)
760
760
> 1. Return _"commonjs"_.
761
761
> 1. Throw an _Unsupported File Extension_ error.
762
762
763
- READ_PACKAGE_SCOPE(_url_)
763
+ ** READ_PACKAGE_SCOPE** (_url_)
764
764
> 1. Let _scopeURL_ be _url_.
765
765
> 1. While _scopeURL_ is not the file system root,
766
766
> 1. Let _pjson_ be the result of **READ_PACKAGE_JSON**(_scopeURL_).
@@ -769,7 +769,7 @@ READ_PACKAGE_SCOPE(_url_)
769
769
> 1. Set _scopeURL_ to the parent URL of _scopeURL_.
770
770
> 1. Return **null**.
771
771
772
- READ_PACKAGE_JSON(_packageURL_)
772
+ ** READ_PACKAGE_JSON** (_packageURL_)
773
773
> 1. Let _pjsonURL_ be the resolution of _"package.json"_ within _packageURL_.
774
774
> 1. If the file at _pjsonURL_ does not exist, then
775
775
> 1. Return **null**.
0 commit comments