summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/import_cjs_from_esm
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-09-03 18:19:30 +0200
committerGitHub <noreply@github.com>2022-09-03 18:19:30 +0200
commite324151520c62c9503e5e38da66827cd7815ea14 (patch)
tree51449e9ea202b758a4ac74210b97f6c9b65d26e7 /cli/tests/testdata/compat/import_cjs_from_esm
parentfc4025c878a7986576f693ed3ad297212f6a99de (diff)
BREAKING(unstable): remove --compat mode (#15678)
This commit removes "compat" mode. We shipped support for "npm:" specifier support in v1.25 and that is preferred way to interact with Node code that we will iterate and improve upon.
Diffstat (limited to 'cli/tests/testdata/compat/import_cjs_from_esm')
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/imported.js9
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/main.mjs1
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs2
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/reexports.js1
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/reexports2.js2
5 files changed, 0 insertions, 15 deletions
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/imported.js b/cli/tests/testdata/compat/import_cjs_from_esm/imported.js
deleted file mode 100644
index 49ab4c782..000000000
--- a/cli/tests/testdata/compat/import_cjs_from_esm/imported.js
+++ /dev/null
@@ -1,9 +0,0 @@
-exports = {
- a: "A",
- b: "B",
-};
-exports.foo = "foo";
-exports.bar = "bar";
-exports.fizz = require("./reexports.js");
-
-console.log(exports);
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/main.mjs b/cli/tests/testdata/compat/import_cjs_from_esm/main.mjs
deleted file mode 100644
index 6fbed1b7c..000000000
--- a/cli/tests/testdata/compat/import_cjs_from_esm/main.mjs
+++ /dev/null
@@ -1 +0,0 @@
-import "./imported.js";
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs b/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs
deleted file mode 100644
index b94033268..000000000
--- a/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs
+++ /dev/null
@@ -1,2 +0,0 @@
-const url = import.meta.resolve("./imported.js");
-await import(url);
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/reexports.js b/cli/tests/testdata/compat/import_cjs_from_esm/reexports.js
deleted file mode 100644
index 62edb7708..000000000
--- a/cli/tests/testdata/compat/import_cjs_from_esm/reexports.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("./reexports2.js");
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/reexports2.js b/cli/tests/testdata/compat/import_cjs_from_esm/reexports2.js
deleted file mode 100644
index 183d833b0..000000000
--- a/cli/tests/testdata/compat/import_cjs_from_esm/reexports2.js
+++ /dev/null
@@ -1,2 +0,0 @@
-exports.buzz = "buzz";
-exports.fizz = "FIZZ";