From 9bb90ba502de9a864e888ac776ca789e9c74ce0d Mon Sep 17 00:00:00 2001 From: h-a-n-a Date: Thu, 18 Aug 2022 03:35:20 +0800 Subject: [PATCH] doc: fix typo --- 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 2ee71ed77c2e54..52ba6f432bbf84 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.