From be9f99dc397502ec312f0e079e300c62ccf459cb Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Wed, 8 Mar 2023 11:44:03 -0500 Subject: [PATCH 1/2] doc: fix typo on esm loaders example Fixes a small typo on the Transpiler loader example. --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 6dc08f9c161320..4c38f131cdf0b1 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1129,7 +1129,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` should be 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 From d8760e7be36d74bfc96c944c1dba94ec2a50436f Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Wed, 8 Mar 2023 13:21:11 -0500 Subject: [PATCH 2/2] Update doc/api/esm.md Co-authored-by: Antoine du Hamel --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 4c38f131cdf0b1..6293779131e4e0 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1129,7 +1129,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` should 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