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> |
||
|---|---|---|
| .. | ||
| assert.js | ||
| create_dynamic_module.js | ||
| get_format.js | ||
| hooks.js | ||
| load.js | ||
| loader.js | ||
| module_job.js | ||
| module_map.js | ||
| resolve.js | ||
| shared_constants.js | ||
| translators.js | ||
| utils.js | ||
| worker.js | ||