diff --git a/doc/api/modules.md b/doc/api/modules.md index 0c9f9ab395a87a..9207d97410b88e 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -232,7 +232,7 @@ the `require.resolve()` function. Putting together all of the above, here is the high-level algorithm in pseudocode of what `require()` does: -
+```text require(X) from module at path Y 1. If X is a core module, a. return the core module @@ -335,7 +335,7 @@ RESOLVE_ESM_MATCH(MATCH) 2. If the file at RESOLVED_PATH exists, load RESOLVED_PATH as its extension format. STOP 3. THROW "not found" -+``` ## Caching