Skip to content

Commit 71bc352

Browse files
aduh95danielleadams
authored andcommitted
doc: clarify entry point behavior when using loader hooks
Fixes: #41275 PR-URL: #41304 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d383904 commit 71bc352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/esm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ node b.mjs # works
623623
To customize the default module resolution, loader hooks can optionally be
624624
provided via a `--experimental-loader ./loader-name.mjs` argument to Node.js.
625625
626-
When hooks are used they only apply to ES module loading and not to any
627-
CommonJS modules loaded.
626+
When hooks are used they apply to the entry point and all `import` calls. They
627+
won't apply to `require` calls; those still follow [CommonJS][] rules.
628628
629629
### Hooks
630630

0 commit comments

Comments
 (0)