node/lib/internal/modules
Joyee Cheung 7535aa1f72 esm: link modules synchronously when no async loader hooks are used
When no async loader hooks are registered, perform the linking as
synchronously as possible to reduce the chance of races from the
the shared module loading cache.

PR-URL: https://github.com/nodejs/node/pull/59519
Fixes: https://github.com/nodejs/node/issues/59366
Refs: https://github.com/abejfehr/node-22.18-issue-repro
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2025-08-20 14:31:08 +00:00
..
cjs module: fix conditions override in synchronous resolve hooks 2025-07-26 09:13:11 +00:00
esm esm: link modules synchronously when no async loader hooks are used 2025-08-20 14:31:08 +00:00
customization_hooks.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
helpers.js module: fix conditions override in synchronous resolve hooks 2025-07-26 09:13:11 +00:00
package_json_reader.js src: add cache to nearest parent package json 2025-07-21 15:26:02 +00:00
run_main.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
typescript.js lib: fix getTypeScriptParsingMode jsdoc 2025-06-26 07:04:40 +00:00