From 4bc96c5d2ab46ff3ca1af1524c1913c2a5f2745c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 11 Jun 2024 08:55:12 -0400 Subject: 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 --- tests/specs/npm/dynamic_npm_resolution_failure/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/specs/npm/dynamic_npm_resolution_failure/main.ts (limited to 'tests/specs/npm/dynamic_npm_resolution_failure/main.ts') 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")); -- cgit v1.2.3