node/lib/internal/modules
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
..
cjs module: fix sync hook short-circuit in require() in imported CJS 2026-06-18 00:15:50 +02:00
esm module: load ESM helpers eagerly in the snapshot 2026-06-18 21:12:36 +01:00
customization_hooks.js module: handle null source from async loader hooks in sync hooks 2025-11-07 18:11:30 +01:00
helpers.js module: run require.resolve through module.registerHooks() 2026-04-10 14:52:16 +02:00
package_json_reader.js src: cache missing package.json files in the C++ package config cache 2026-01-27 22:52:30 +01:00
run_main.js module: mark type stripping as stable 2025-11-18 15:29:15 +01:00
typescript.js lib: fix getTypeScriptParsingMode jsdoc 2025-07-03 10:50:12 +02:00