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
  • Loading branch information
aduh95 committed Dec 23, 2021
1 parent 406e6d8 commit 32cac37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/esm.md
Expand Up @@ -629,8 +629,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 that still follows [CommonJS][] rules.
### Hooks
Expand Down

0 comments on commit 32cac37

Please sign in to comment.