Files
node/lib
Joyee Cheung 5065a0acb3 module: do not invoke resolve hooks twice for imported cjs
Previously the resolve hook can be invoked twice from the
synthetic module evaluation step of imported CJS in the extra
module._load() call that's invoked on the resolved full path.
Add an option to avoid it, since the resolution and loading
has already been done before.

PR-URL: https://github.com/nodejs/node/pull/61529
Backport-PR-URL: https://github.com/nodejs/node/pull/62029
Fixes: https://github.com/nodejs/node/issues/57125
Refs: https://github.com/nodejs/node/issues/55808
Refs: https://github.com/nodejs/node/issues/56241
Reviewed-By: Jacob Smith <jacob@frende.me>
Fixes: https://github.com/nodejs/node/issues/61801
2026-04-27 18:03:26 +02:00
..
…
…
…
…
…
…
2025-08-26 11:22:39 +02:00
…
…
2025-10-18 20:35:56 +02:00
2026-02-24 00:37:08 +01:00
2024-11-27 11:03:39 -05:00
2024-11-27 11:03:39 -05:00
2025-09-20 06:16:51 +00:00
2025-02-03 20:09:53 +01:00
…
2025-10-07 17:29:36 +02:00
2026-02-24 08:38:58 +01:00
2025-04-17 10:51:20 -03:00
…
2025-09-20 03:32:52 +00:00