summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@google.com>2023-03-10 12:09:54 -0500
committerDanielle Adams <adamzdanielle@gmail.com>2023-04-10 22:18:17 -0400
commita5bf6693b9a10796f500f336ae0ac1ad01694662 (patch)
tree6e78bd73b7df01991da8722797182c5169c28f7d
parentc4f192b5924147f4b7da1137364d9996346058c0 (diff)
downloadnode-new-a5bf6693b9a10796f500f336ae0ac1ad01694662.tar.gz
doc: fix typo on esm loaders example
Fixes a small typo on the Transpiler loader example. PR-URL: https://github.com/nodejs/node/pull/47015 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
-rw-r--r--doc/api/esm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index eab0f3957e..1b30929d0e 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -1118,7 +1118,7 @@ export async function load(url, context, nextLoad) {
// file, search up the file system for the nearest parent package.json file
// and read its "type" field.
const format = await getPackageType(url);
- // When a hook returns a format of 'commonjs', `source` is be ignored.
+ // When a hook returns a format of 'commonjs', `source` is ignored.
// To handle CommonJS files, a handler needs to be registered with
// `require.extensions` in order to process the files with the CommonJS
// loader. Avoiding the need for a separate CommonJS handler is a future