mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -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". |
||
---|---|---|
.. | ||
import_cjs_from_esm | ||
import_esm_from_cjs | ||
test_runner | ||
worker | ||
dyn_import_reject.js | ||
dyn_import_reject.out | ||
fs_promises.mjs | ||
fs_promises.out | ||
globals.out | ||
globals.ts | ||
import_cjs_from_esm.out | ||
import_map.json | ||
import_map_https_imports.mjs | ||
import_map_https_imports.out | ||
node_fs_promises.mjs | ||
test.txt |