node/lib/internal/modules/esm
Joyee Cheung a53b51df38
module: load ESM helpers eagerly in the snapshot
Since the ESM loader is captured in the snapshot now, there's
no need to lazy load the helpers. Load them eagerly to capture
them into the snapshot. This also reduces the noise coming out
of --print-bytecode since we no longer compile the helper
functions at run time.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63550
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
2026-06-18 21:12:36 +01:00
..
assert.js
create_dynamic_module.js
get_format.js lib: remove top-level getOptionValue() calls in lib/internal/modules 2026-04-08 23:53:06 +02:00
hooks.js lib: replace global SharedArrayBuffer constructor with bound method 2025-11-13 22:44:17 +01:00
initialize_import_meta.js esm: use sync loading/resolving on non-loader-hook thread 2025-11-13 22:44:15 +01:00
load.js module: fix sync hook short-circuit in require() in imported CJS 2026-06-18 00:15:50 +02:00
loader.js module: load ESM helpers eagerly in the snapshot 2026-06-18 21:12:36 +01:00
module_job.js esm: add ERR_REQUIRE_ESM_RACE_CONDITION 2026-05-07 15:41:41 +02:00
module_map.js lib: revert to using default derived class constructors 2025-09-04 10:15:15 +02:00
resolve.js fs: restore fs patchability in ESM loader 2026-05-07 15:41:45 +02:00
shared_constants.js
translators.js module: fix sync hook short-circuit in require() in imported CJS 2026-06-18 00:15:50 +02:00
utils.js cli: add --require-module/--no-require-module 2026-04-08 23:52:59 +02:00
worker.js esm: fix typo in worker loader hook comment 2026-04-10 14:52:27 +02:00