mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -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". |
||
---|---|---|
.. | ||
integration | ||
testdata | ||
unit | ||
integration_tests.rs |