Skip to content

Commit b490805

Browse files
authored
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 bad65ea commit b490805

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
@@ -629,8 +629,8 @@ node b.mjs # works
629629
To customize the default module resolution, loader hooks can optionally be
630630
provided via a `--experimental-loader ./loader-name.mjs` argument to Node.js.
631631
632-
When hooks are used they only apply to ES module loading and not to any
633-
CommonJS modules loaded.
632+
When hooks are used they apply to the entry point and all `import` calls. They
633+
won't apply to `require` calls; those still follow [CommonJS][] rules.
634634
635635
### Hooks
636636

0 commit comments

Comments
 (0)