GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify entry point behavior when using loader hooks · nodejs/node@014d483

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • esm.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ node b.mjs # works
628628
To customize the default module resolution, loader hooks can optionally be
629629
provided via a `--experimental-loader ./loader-name.mjs` argument to Node.js.
630630
631-
When hooks are used they only apply to ES module loading and not to any
632-
CommonJS modules loaded.
631+
When hooks are used they apply to the entry point and all `import` calls. They
632+
won't apply to `require` calls; those still follow [CommonJS][] rules.
633633
634634
### Hooks
635635

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.