1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/specs/run/import_common_js
Bartek Iwańczuk dfc5eec43c
feat: Allow importing .cjs files (#25426)
This commit adds support for executing top-level `.cjs` files, 
as well as import `.cjs` files from within npm packages.

This works only for `.cjs` files, the contents of sibling `package.json`
are not consulted for the `"type"` field.

Closes https://github.com/denoland/deno/issues/25384

---------

Signed-off-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-09-05 07:59:12 +00:00
..
node_modules/foo feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
__test__.jsonc feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
a.js feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
index.cjs feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
index.out feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
main.out feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
main.ts feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
package.json feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00