diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-11 08:55:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 08:55:12 -0400 |
commit | 4bc96c5d2ab46ff3ca1af1524c1913c2a5f2745c (patch) | |
tree | 8452947b0267e47c795cadb02d2d1b44b3e40f81 /tests/specs/npm/dynamic_npm_resolution_failure/main.ts | |
parent | 6a356aff1380e79d67738c5b43aa2b5fee76600d (diff) |
fix(npm): resolve dynamic npm imports individually (#24170)
* https://github.com/denoland/deno_npm/pull/57
* https://github.com/denoland/deno_graph/pull/498
Closes https://github.com/denoland/deno/issues/17802
Diffstat (limited to 'tests/specs/npm/dynamic_npm_resolution_failure/main.ts')
-rw-r--r-- | tests/specs/npm/dynamic_npm_resolution_failure/main.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/npm/dynamic_npm_resolution_failure/main.ts b/tests/specs/npm/dynamic_npm_resolution_failure/main.ts new file mode 100644 index 000000000..0096bca48 --- /dev/null +++ b/tests/specs/npm/dynamic_npm_resolution_failure/main.ts @@ -0,0 +1,9 @@ +import chalk from "npm:chalk"; + +console.log(chalk.green("Hi")); +try { + await import("npm:@denotest/dep-cannot-parse"); +} catch (err) { + console.log(err); +} +console.log(chalk.green("Bye")); |