1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/cli/tests/testdata/compat/import_cjs_from_esm
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
..
imported.js feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00
main.mjs feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00
main_dynamic.mjs fix(compat): cjs/esm interop for dynamic imports (#13792) 2022-03-11 02:33:02 +01:00
reexports.js feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00
reexports2.js feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00