node/lib/internal/modules/esm
Joyee Cheung bdd590be73
module: use kNodeModulesRE to detect node_modules
This is faster and more consistent with other places using the
regular expression to detect node_modules.

PR-URL: https://github.com/nodejs/node/pull/55243
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2024-10-04 17:29:34 +00:00
..
assert.js lib,doc: replace references to import assertions 2024-05-17 08:07:48 +00:00
create_dynamic_module.js module: centralize SourceTextModule compilation for builtin loader 2024-04-03 23:31:48 +00:00
fetch_module.js lib: fix typos 2024-09-25 14:35:18 +00:00
formats.js module: add --experimental-strip-types 2024-07-24 16:30:06 +00:00
get_format.js module: implement the "module-sync" exports condition 2024-09-25 06:35:26 +00:00
hooks.js test_runner: do not expose internal loader 2024-08-13 15:17:50 +02:00
initialize_import_meta.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
load.js module: use kNodeModulesRE to detect node_modules 2024-10-04 17:29:34 +00:00
loader.js module: unflag --experimental-require-module 2024-09-26 14:21:37 +00:00
module_job.js module: unflag --experimental-require-module 2024-09-26 14:21:37 +00:00
module_map.js lib,doc: replace references to import assertions 2024-05-17 08:07:48 +00:00
resolve.js src: add receiver to fast api callback methods 2024-09-28 09:46:03 +00:00
shared_constants.js esm: move hook execution to separate thread 2023-04-13 09:35:17 +02:00
translators.js esm: export 'module.exports' on ESM CJS wrapper 2024-10-02 12:30:23 -07:00
utils.js module: unflag --experimental-require-module 2024-09-26 14:21:37 +00:00
worker.js Revert "module: have a single hooks thread for all workers" 2024-06-02 22:10:34 +00:00