mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 18:42:18 -05:00
808f797633
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". |
||
---|---|---|
.. | ||
imported.js | ||
main.mjs | ||
main_dynamic.mjs | ||
reexports.js | ||
reexports2.js |