mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: clarify entry point behavior when using loader hooks
Fixes: https://github.com/nodejs/node/issues/41275 PR-URL: https://github.com/nodejs/node/pull/41304 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
1d75436a1c
commit
014d4836ec
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user