node/test/fixtures/es-module-loaders
Chengzhong Wu cc856b3d5d
module: link module with a module request record
When a module is being statically linked with module requests, if two
module requests with a same specifier but different attributes are
resolved to two modules, the module requests should be linked to these
two modules.

PR-URL: https://github.com/nodejs/node/pull/58886
Refs: https://tc39.es/ecma262/#sec-HostLoadImportedModule
Refs: https://github.com/tc39/proposal-import-attributes?tab=readme-ov-file#how-would-this-proposal-work-with-caching
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2025-07-04 19:56:08 +00:00
..
never-settling-resolve-step esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
node_modules module: implement register utility 2023-06-12 00:00:46 +00:00
assertionless-json-import.mjs esm: use import attributes instead of import assertions 2023-10-14 03:52:38 +00:00
builtin-named-exports-loader.mjs module: unflag detect-module 2024-07-20 18:30:46 +00:00
builtin-named-exports.mjs Revert "module: have a single hooks thread for all workers" 2024-06-02 22:10:34 +00:00
byop-dummy-loader.mjs module: change default resolver to not throw on unknown scheme 2023-05-19 15:50:50 +00:00
example-loader.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
hook-resolve-type-loader.mjs test: deflake test-esm-loader-resolve-type 2023-10-21 09:25:11 +00:00
hook-resolve-type.mjs test: deflake test-esm-loader-resolve-type 2023-10-21 09:25:11 +00:00
hooks-custom.mjs module: prevent main thread exiting before esm worker ends 2024-12-10 23:52:29 +00:00
hooks-initialize-port.mjs esm: remove return value for Module.register 2023-09-09 12:44:28 +00:00
hooks-initialize.mjs esm: remove return value for Module.register 2023-09-09 12:44:28 +00:00
hooks-input.mjs module: link module with a module request record 2025-07-04 19:56:08 +00:00
http-loader.mjs module: change default resolver to not throw on unknown scheme 2023-05-19 15:50:50 +00:00
js-as-esm.js
loader-dep.js esm: phase two of new esm implementation 2019-03-27 15:52:11 -04:00
loader-edge-cases.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-invalid-format.mjs esm: use import attributes instead of import assertions 2023-10-14 03:52:38 +00:00
loader-invalid-url.mjs esm: use import attributes instead of import assertions 2023-10-14 03:52:38 +00:00
loader-load-bad-next-context.mjs esm: add chaining to loaders 2022-05-04 16:51:12 +01:00
loader-load-bad-next-url.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-load-dynamic-import.mjs esm: unflag Module.register and allow nested loader import() 2023-07-19 10:33:47 +00:00
loader-load-foo-or-42.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-load-impersonating-next-url.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-load-incomplete.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-load-next-modified.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-load-null-return.mjs esm: restore next<HookName>'s context as optional arg 2022-07-02 05:44:03 +01:00
loader-load-passing-modified-context.mjs esm: add chaining to loaders 2022-05-04 16:51:12 +01:00
loader-load-passthru.mjs module: implement register utility 2023-06-12 00:00:46 +00:00
loader-load-receiving-modified-context.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-log-args.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-42.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-bad-next-context.mjs Revert "esm: convert resolve hook to synchronous" 2022-06-22 08:13:36 +01:00
loader-resolve-bad-next-specifier.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-resolve-dynamic-import.mjs esm: unflag Module.register and allow nested loader import() 2023-07-19 10:33:47 +00:00
loader-resolve-foo.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-incomplete.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-multiple-next-calls.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-resolve-next-modified.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-null-return.mjs esm: restore next<HookName>'s context as optional arg 2022-07-02 05:44:03 +01:00
loader-resolve-passing-modified-context.mjs Revert "esm: convert resolve hook to synchronous" 2022-06-22 08:13:36 +01:00
loader-resolve-passthru.mjs module: implement register utility 2023-06-12 00:00:46 +00:00
loader-resolve-receiving-modified-context.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-shortcircuit.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-strip-xxx.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-resolve-strip-yyy.mjs esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
loader-shared-dep.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-this-value-inside-hook-functions.mjs test: isolate globalPreload tests 2023-09-09 23:02:21 +00:00
loader-unknown-builtin-module.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
loader-with-custom-condition.mjs module: unflag --experimental-require-module 2024-09-26 14:21:37 +00:00
loader-with-dep.mjs esm: use import attributes instead of import assertions 2023-10-14 03:52:38 +00:00
loader-with-too-many-args.mjs esm: fix loader hooks accepting too many arguments 2022-08-04 22:10:13 +00:00
missing-dynamic-instantiate-hook.mjs test: refactor ESM tests to improve performance 2022-07-29 10:42:55 +02:00
mock-loader.mjs esm: refactor mocking test 2023-09-05 01:13:40 +00:00
mock.mjs esm: refactor mocking test 2023-09-05 01:13:40 +00:00
module-named-exports.mjs module: print better message on esm import error 2017-12-24 17:38:36 +01:00
not-found-assert-loader.mjs Revert "module: have a single hooks thread for all workers" 2024-06-02 22:10:34 +00:00
preset-cjs-source.mjs esm: do not call getSource when format is commonjs 2023-11-29 09:21:54 +00:00
register-loader.cjs module: implement register utility 2023-06-12 00:00:46 +00:00
register-loader.mjs module: implement register utility 2023-06-12 00:00:46 +00:00
register-programmatically-loader-load.mjs module: implement register utility 2023-06-12 00:00:46 +00:00
register-programmatically-loader-resolve.mjs module: implement register utility 2023-06-12 00:00:46 +00:00
string-sources.mjs esm: use import attributes instead of import assertions 2023-10-14 03:52:38 +00:00
syntax-error.mjs module: print better message on esm syntax error 2017-11-29 12:06:09 +01:00
thenable-load-hook-rejected-no-arguments.mjs test: improve coverage for load hooks 2022-06-18 01:27:13 +01:00
thenable-load-hook-rejected.mjs test: improve coverage for load hooks 2022-06-18 01:27:13 +01:00
thenable-load-hook.mjs test: improve coverage for load hooks 2022-06-18 01:27:13 +01:00
throw-undefined.mjs test: remove eslint-disable comments from fixtures 2022-02-06 08:26:00 -08:00