| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -628,8 +628,8 @@ node b.mjs # works | |||
| 628 | 628 | To customize the default module resolution, loader hooks can optionally be | |
| 629 | 629 | provided via a `--experimental-loader ./loader-name.mjs` argument to Node.js. | |
| 630 | 630 | ||
| 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. | ||
| 633 | 633 | ||
| 634 | 634 | ### Hooks | |
| 635 | 635 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments