node/lib/internal/modules
Joyee Cheung e1d65d9509
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-05-30 19:26:26 +02:00
..
cjs module: fix sync hook short-circuit in require() in imported CJS 2026-05-19 14:08:17 +02:00
esm module: load ESM helpers eagerly in the snapshot 2026-05-30 19:26:26 +02:00
customization_hooks.js
helpers.js module: run require.resolve through module.registerHooks() 2026-03-02 18:28:25 +00:00
package_json_reader.js
run_main.js
typescript.js test_runner: ignore erased TS lines in coverage 2026-05-30 19:26:25 +02:00