diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-28 20:37:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-28 20:37:10 +0100 |
| commit | 576b20aa005c233b95afe6e3692a899ae8f755f2 (patch) | |
| tree | 584a0eb42fb785eccfab6a590c1b4b84b77ef51d /cli/tests/testdata/run/import_meta/main.out | |
| parent | f85d65e066302ad7357321ec9e2940c2346d2263 (diff) | |
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.
Diffstat (limited to 'cli/tests/testdata/run/import_meta/main.out')
| -rw-r--r-- | cli/tests/testdata/run/import_meta/main.out | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tests/testdata/run/import_meta/main.out b/cli/tests/testdata/run/import_meta/main.out index 1b51f1cdf..0329dea8a 100644 --- a/cli/tests/testdata/run/import_meta/main.out +++ b/cli/tests/testdata/run/import_meta/main.out @@ -7,5 +7,6 @@ Resolving without a value from import map https://example.com/PASS-undefined Resolving 1 from import map https://example.com/PASS-1 Resolving null from import map https://example.com/PASS-null Resolving object from import map https://example.com/PASS-object -TypeError: "npm:" specifiers are currently not supported in import.meta.resolve() - at file:///[WILDCARD]testdata/run/import_meta/main.ts:36:15 +Resolving npm:cowsay npm:cowsay +Resolving npm:cowsay@1 npm:cowsay@1 +Resolving npm:preact from import map https://example.com/preact |
