summaryrefslogtreecommitdiff
path: root/tests/specs/node/detect_es_module_defined_as_cjs/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-21 11:35:51 -0700
committerGitHub <noreply@github.com>2024-03-21 11:35:51 -0700
commit9abc722cc3a998b4f73103c4394b53cccdb5c83b (patch)
tree228a9eb9665439e52b9588830a80dd6c8ef1499e /tests/specs/node/detect_es_module_defined_as_cjs/main.ts
parenta90a6f3b291d2a30750c2578fc3763246a182dea (diff)
feat(node): load ES modules defined as CJS (#22945)
Changes the behaviour in Deno to just always load ES modules in npm packages even if they're defined as CJS. Closes #22818
Diffstat (limited to 'tests/specs/node/detect_es_module_defined_as_cjs/main.ts')
-rw-r--r--tests/specs/node/detect_es_module_defined_as_cjs/main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/specs/node/detect_es_module_defined_as_cjs/main.ts b/tests/specs/node/detect_es_module_defined_as_cjs/main.ts
new file mode 100644
index 000000000..a4be7b4c4
--- /dev/null
+++ b/tests/specs/node/detect_es_module_defined_as_cjs/main.ts
@@ -0,0 +1,3 @@
+import { add } from "package";
+
+console.log(add(1, 2));