node/lib/internal/modules
Maya Lekova b09155d975
module: enable existing machinery for deferred import of static modules
This commit enables deferred import for statically imported modules,
by using the corresponding functionality in V8. It adds two tests:
 - smoke test exercising the basic syntax
 - test for deferred import of module with its own imports

More test coverage should be added for mixing ESM and CJS modules,
as well as TypeScript modules.

Refs: https://github.com/tc39/proposal-defer-import-eval
Signed-off-by: Maya Lekova <maya@igalia.com>
PR-URL: https://github.com/nodejs/node/pull/63712
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-06-16 20:39:20 +00:00
..
cjs loader: implement package maps 2026-06-12 16:02:01 +00:00
esm module: enable existing machinery for deferred import of static modules 2026-06-16 20:39:20 +00: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 src: cache missing package.json files in the C++ package config cache 2026-01-20 13:02:25 +00:00
package_map.js loader: implement package maps 2026-06-12 16:02:01 +00:00
run_main.js
typescript.js lib: remove source map deadcode in type stripping 2026-06-08 16:12:12 +00:00