Skip to content

Commit

Permalink
doc: clarify entry point behavior when using loader hooks
Browse files Browse the repository at this point in the history
Fixes: #41275

PR-URL: #41304
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
aduh95 authored and targos committed Jan 14, 2022
1 parent 1d75436 commit 014d483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,8 @@ node b.mjs # works
To customize the default module resolution, loader hooks can optionally be
provided via a `--experimental-loader ./loader-name.mjs` argument to Node.js.
When hooks are used they only apply to ES module loading and not to any
CommonJS modules loaded.
When hooks are used they apply to the entry point and all `import` calls. They
won't apply to `require` calls; those still follow [CommonJS][] rules.
### Hooks
Expand Down

0 comments on commit 014d483

Please sign in to comment.