From dfc5eec43c481b1eeaa0ad069aeba8b7559d4440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 5 Sep 2024 08:59:12 +0100 Subject: 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 Co-authored-by: Luca Casonato Co-authored-by: David Sherret --- tests/integration/run_tests.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs index 117e5709e..16faba438 100644 --- a/tests/integration/run_tests.rs +++ b/tests/integration/run_tests.rs @@ -1926,11 +1926,6 @@ itest!(es_private_fields { output: "run/es_private_fields.js.out", }); -itest!(cjs_imports { - args: "run --quiet --reload run/cjs_imports/main.ts", - output: "run/cjs_imports/main.out", -}); - itest!(ts_import_from_js { args: "run --quiet --reload run/ts_import_from_js/main.js", output: "run/ts_import_from_js/main.out", -- cgit v1.2.3