diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2021-11-01 14:46:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-01 14:46:07 -0400 |
| commit | b92019a8475a16213028ab73b15be5a3f7c56e0a (patch) | |
| tree | 610cebc1c4f3aeebb8c9d8dd585dc7e8e82805c4 /cli/compat/testdata | |
| parent | 1b684d333df80ba7589e346cafb76b6952354d33 (diff) | |
port check_if_should_use_esm_loader to rust (#12562)
Diffstat (limited to 'cli/compat/testdata')
| -rw-r--r-- | cli/compat/testdata/not_esm/main.js | 1 | ||||
| -rw-r--r-- | cli/compat/testdata/not_esm/node_modules/foo/index.js | 0 | ||||
| -rw-r--r-- | cli/compat/testdata/not_esm/node_modules/foo/package.json | 5 | ||||
| -rw-r--r-- | cli/compat/testdata/not_esm/package.json | 6 |
4 files changed, 12 insertions, 0 deletions
diff --git a/cli/compat/testdata/not_esm/main.js b/cli/compat/testdata/not_esm/main.js new file mode 100644 index 000000000..347e20832 --- /dev/null +++ b/cli/compat/testdata/not_esm/main.js @@ -0,0 +1 @@ +require("foo"); diff --git a/cli/compat/testdata/not_esm/node_modules/foo/index.js b/cli/compat/testdata/not_esm/node_modules/foo/index.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/cli/compat/testdata/not_esm/node_modules/foo/index.js diff --git a/cli/compat/testdata/not_esm/node_modules/foo/package.json b/cli/compat/testdata/not_esm/node_modules/foo/package.json new file mode 100644 index 000000000..a74d52fd3 --- /dev/null +++ b/cli/compat/testdata/not_esm/node_modules/foo/package.json @@ -0,0 +1,5 @@ +{ + "name": "foo", + "type": "module", + "exports": "./index.js" +} diff --git a/cli/compat/testdata/not_esm/package.json b/cli/compat/testdata/not_esm/package.json new file mode 100644 index 000000000..4b03fc938 --- /dev/null +++ b/cli/compat/testdata/not_esm/package.json @@ -0,0 +1,6 @@ +{ + "name": "bar", + "dependencies": { + "foo": "1.0.0" + } +} |
