1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tests/testdata/compat
Bartek Iwańczuk 808f797633
fix(compat): cjs/esm interop for dynamic imports (#13792)
This commit fixes CJS/ESM interop in compat mode for dynamically
imported modules.

"ProcState::prepare_module_load" was changed to accept a list
of "graph roots" without associated "module kind". That module kind
was always hardcoded to "ESM" which is not true for CJS/ESM interop -
a CommonJs module might be imported using "import()" function. In
such case the root of the graph should have "CommonJs" module kind
instead of "ESM".
2022-03-11 02:33:02 +01:00
..
import_cjs_from_esm fix(compat): cjs/esm interop for dynamic imports (#13792) 2022-03-11 02:33:02 +01:00
import_esm_from_cjs compat: support compat mode in REPL (#12882) 2021-11-24 16:55:10 +01:00
test_runner feat(test): Add support for "deno test --compat" (#13235) 2021-12-30 17:18:30 +01:00
worker compat: support --compat in web workers (#13629) 2022-02-11 13:41:56 +01:00
dyn_import_reject.js feat(compat): add .code to dyn import error (#12633) 2021-11-08 16:02:40 +09:00
dyn_import_reject.out compat: support compat mode in REPL (#12882) 2021-11-24 16:55:10 +01:00
fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
fs_promises.out feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00
globals.out feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
globals.ts feat(compat): inject Node globals (#12342) 2021-10-06 19:07:04 +02:00
import_cjs_from_esm.out feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00
import_map.json v1.19.0 2022-02-17 01:54:07 +01:00
import_map_https_imports.mjs v1.19.0 2022-02-17 01:54:07 +01:00
import_map_https_imports.out feat(compat): integrate import map and classic resolutions in ESM resolution (#12549) 2021-10-28 10:11:38 +02:00
node_fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
test.txt feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00