diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-17 17:17:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 17:17:58 -0400 |
commit | b09af6a4244356485054948499dba5f94d8814f4 (patch) | |
tree | 1663deddf06f2267caaffc1084e7e15af48196ac /cli/tests/testdata/npm/registry | |
parent | 298e4149368b23fee573fa27f1a00e0c50828c8c (diff) |
fix(npm): support dynamic import of Deno TS from npm package (#19858)
Closes #19843
Diffstat (limited to 'cli/tests/testdata/npm/registry')
-rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/index.js | 3 | ||||
-rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/package.json | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/index.js new file mode 100644 index 000000000..4dc3831f9 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/index.js @@ -0,0 +1,3 @@ +export function dynamicImport(url) { + return import(url); +} diff --git a/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/package.json new file mode 100644 index 000000000..fa970177c --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/dynamic-import/1.0.0/package.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/dynamic-import", + "type": "module", + "version": "1.0.0" +} |