From 576b20aa005c233b95afe6e3692a899ae8f755f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 28 Dec 2023 20:37:10 +0100 Subject: fix: allow npm: specifiers in import.meta.resolve (#21716) Closes https://github.com/denoland/deno/issues/21298. "npm:" specifiers are matched against import map entries and if no match is found they are passed through. --- cli/tests/testdata/run/import_meta/importmap.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/tests/testdata/run/import_meta/importmap.json') diff --git a/cli/tests/testdata/run/import_meta/importmap.json b/cli/tests/testdata/run/import_meta/importmap.json index f8c056afd..d85fe3028 100644 --- a/cli/tests/testdata/run/import_meta/importmap.json +++ b/cli/tests/testdata/run/import_meta/importmap.json @@ -6,6 +6,7 @@ "1": "https://example.com/PASS-1", "null": "https://example.com/PASS-null", "undefined": "https://example.com/PASS-undefined", - "[object Object]": "https://example.com/PASS-object" + "[object Object]": "https://example.com/PASS-object", + "npm:preact": "https://example.com/preact" } } -- cgit v1.2.3