Skip to content

Commit 59d85f5

Browse files
authored
doc: fix typo on esm loaders example
Fixes a small typo on the Transpiler loader example. PR-URL: #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>
1 parent b0d31bb commit 59d85f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/esm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ export async function load(url, context, nextLoad) {
11291129
// file, search up the file system for the nearest parent package.json file
11301130
// and read its "type" field.
11311131
const format = await getPackageType(url);
1132-
// When a hook returns a format of 'commonjs', `source` is be ignored.
1132+
// When a hook returns a format of 'commonjs', `source` is ignored.
11331133
// To handle CommonJS files, a handler needs to be registered with
11341134
// `require.extensions` in order to process the files with the CommonJS
11351135
// loader. Avoiding the need for a separate CommonJS handler is a future

0 commit comments

Comments
 (0)