node/test/fixtures/es-modules
Joyee Cheung c46260284c
module: only put directly require-d ESM into require.cache
This reduces the impact of
https://redirect.github.com/nodejs/node/pull/59679
by delaying the require.cache population of ESM until they
are directly required. After that, it's necessary for them
to be in the cache to maintain correctness.

PR-URL: https://github.com/nodejs/node/pull/59874
Refs: https://github.com/nodejs/node/issues/59868
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
2025-09-17 13:13:59 +00:00
..
cjs-esm-esm-cycle
custom-condition
deprecated-folders-ignore
dynamic-import
esm-cjs-esm-cycle
esm-cjs-esm-esm-cycle
esm-esm-cjs-esm-cycle
esm-esm-cjs-esm-esm-cycle
esm-in-require-cache module: only put directly require-d ESM into require.cache 2025-09-17 13:13:59 +00:00
exports-both
exports-import-default
exports-import-only
exports-require-only
folder%25with percentage#
import-require-tla-twice
json-cache
legacy-main-resolver
module-condition
module-counter-by-type
package-cjs-named-error
package-default-extension
package-ends-node_modules
package-type-commonjs
package-type-module
package-without-pjson
package-without-type
pjson-invalid
pjson-main
pkgimports
require-and-import
require-esm-in-cjs-cache
require-module-instantiated
self-deprecated-folders
test_node_modules
tla
transpiled-cjs-require-module
builtin-imports-case.mjs
cjs-esm-esm.js
cjs-esm.js
cjs-exports-invalid.mjs
cjs-exports.mjs
cjs-file.cjs
cjs.js
conditional-exports.js
conditional-exports.mjs
data-import.mjs
dep.wasm
dep.wat
dep1.js
dep2.js
es-note-error-1.cjs
es-note-error-1.mjs
es-note-error-2.cjs
es-note-error-2.mjs
es-note-error-3.cjs
es-note-error-3.mjs
es-note-error-4.cjs
es-note-error-4.mjs
es-note-promiserej-import-2.cjs
es-note-unexpected-export-1.cjs
es-note-unexpected-export-2.cjs
es-note-unexpected-import-1.cjs
es-note-unexpected-import-3.cjs
es-note-unexpected-import-4.cjs
es-note-unexpected-import-5.cjs
esm-snapshot-mutator.js
esm-snapshot.js
esm-top-level-await.mjs
export-es-module-2.mjs
export-es-module.mjs
export-name-code-injection.wasm
export-name-code-injection.wat
export-name-syntax-error.wasm
export-name-syntax-error.wat
exports-cases.js
exports-cases2.js
exports-cases3.js
file.ext
file.unknown
globals.js
globals.wasm
globals.wat
import-data-url.mjs
import-esm.mjs
import-invalid-ext.mjs
import-invalid-pjson.mjs
import-json-named-export.mjs
import-meta-main.mjs
import-meta-main.ts
import-name.wasm
import-name.wat
import-process-exit.mjs
import-resolve-exports.mjs
imported-esm.mjs
imports-loose.mjs
imports-noext.mjs
invalid-cjs.js
invalid-export-name-wasm-js.wasm
invalid-export-name-wasm-js.wat
invalid-export-name.wasm
invalid-export-name.wat
invalid-import-module.wasm
invalid-import-module.wat
invalid-import-name-wasm-js.wasm
invalid-import-name-wasm-js.wat
invalid-import-name.wasm
invalid-import-name.wat
invalid-posix-host.mjs
js-string-builtins.wasm
js-string-builtins.wat
json-modules-attributes.mjs
json-modules.mjs
loop.mjs
loose.js
message.mjs
mjs-file.mjs
noext
noext-esm
noext-wasm
pattern-trailing-slash.mjs
print-3.mjs
print-entrypoint.mjs
process-exit.mjs
reference-error-esm.js
reference-error.mjs
require-cjs.mjs
require-esm-throws-with-loaders.js
require-module.js
require-reference-error.cjs
require-syntax-error.cjs
require-throw-error.cjs
required-cjs.js
runmain.mjs
runtime-error-esm.js
should-not-be-resolved.mjs
simple.wasm
simple.wat
stateful.mjs
symlink.mjs
synchronous-rejection-esm.js
syntax-error.mjs
test-esm-comma,.mjs
test-esm-double-encoding-native%20.mjs
test-esm-ok.mjs
throw-error.mjs
top-level-wasm.wasm
unimportable.wasm
wasm-dep.mjs
wasm-function.js
wasm-modules.mjs
wasm-object.js
wasm-source-phase.js
wasm-string-constants.js