From f697ba2a047160486081b24ecf40ad83df985bbf Mon Sep 17 00:00:00 2001 From: Hana Date: Sun, 21 Aug 2022 02:15:37 +0800 Subject: [PATCH] doc: fix typo PR-URL: https://github.com/nodejs/node/pull/44262 Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow Reviewed-By: Kohei Ueno Reviewed-By: Darshan Sen Reviewed-By: Harshitha K P Reviewed-By: Jacob Smith Reviewed-By: Colin Ihrig --- doc/api/packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index 751cc626dd4647..83b1100af215d8 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -126,7 +126,7 @@ There is the ECMAScript module loader: * It accepts only `.js`, `.mjs`, and `.cjs` extensions for JavaScript text files. * It can be used to load JavaScript CommonJS modules. Such modules - are passed through the `es-module-lexer` to try to identify named exports, + are passed through the `cjs-module-lexer` to try to identify named exports, which are available if they can be determined through static analysis. Imported CommonJS modules have their URLs converted to absolute paths and are then loaded via the CommonJS module loader.