summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/import_esm_from_cjs
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_esm_from_cjs
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_esm_from_cjs')
-rw-r--r--cli/tests/testdata/compat/import_esm_from_cjs/index.js1
-rw-r--r--cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/index.js4
-rw-r--r--cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/package.json4
-rw-r--r--cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/index.js2
-rw-r--r--cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/package.json5
5 files changed, 0 insertions, 16 deletions
diff --git a/cli/tests/testdata/compat/import_esm_from_cjs/index.js b/cli/tests/testdata/compat/import_esm_from_cjs/index.js
deleted file mode 100644
index 4ba03e104..000000000
--- a/cli/tests/testdata/compat/import_esm_from_cjs/index.js
+++ /dev/null
@@ -1 +0,0 @@
-require("pure-cjs");
diff --git a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/index.js b/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/index.js
deleted file mode 100644
index 35f7c3774..000000000
--- a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-async function run() {
- const _result = await import('pure-esm');
-}
-run()
diff --git a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/package.json b/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/package.json
deleted file mode 100644
index e854fd992..000000000
--- a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-cjs/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "pure-cjs",
- "main": "./index.js"
-}
diff --git a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/index.js b/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/index.js
deleted file mode 100644
index 898097cb5..000000000
--- a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import fs from 'node:fs';
-console.log(typeof fs.chmod);
diff --git a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/package.json b/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/package.json
deleted file mode 100644
index a373d3ad9..000000000
--- a/cli/tests/testdata/compat/import_esm_from_cjs/node_modules/pure-esm/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "pure-esm",
- "type": "module",
- "main": "./index.js"
-}