Files
node/lib/internal
Joyee Cheung 3d160cd049 module: run require.resolve through module.registerHooks()
Previously, require.resolve() called Module._resolveFilename() directly,
bypassing any resolve hooks registered via module.registerHooks(). This
patch fixes that.

PR-URL: https://github.com/nodejs/node/pull/62028
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2026-03-02 20:18:51 +00:00
..
2026-02-19 11:14:04 +01:00
2025-10-13 10:05:45 +02:00
2024-10-09 06:42:16 +00:00
2026-01-20 15:21:04 +01:00
2026-02-02 14:02:21 +01:00
2026-01-13 10:04:44 -03:00
2025-07-18 07:55:10 -07:00
2026-02-02 14:02:22 +01:00
2025-10-04 22:08:00 +02:00
2026-01-13 10:04:48 -03:00

Internal Modules

The modules located in lib/internal directory are exclusively meant for internal usage within the Node.js core. They are not intended to be accessed via user modules require(). These modules may change at any point in time. Relying on these internal modules outside the core is not supported and can lead to unpredictable behavior.

In certain scenarios, accessing these internal modules for debugging or experimental purposes might be necessary. Node.js provides the --expose-internals flag to expose these modules to userland code. This flag only exists to assist Node.js maintainers with debugging internals. It is not meant for use outside the project.