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.