denoland / denoland/import_map

can't map prefixed address with query string

Open
#46 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
34
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Using `import_map.json`
```
{
"imports": {
"icons-solid-20/": "https://esm.sh/@heroicons/react@2.0.11/20/solid/?alias=react:preact/compat"
}
}
```
With script:
```
import 'icons-solid-20/BeakerIcon';
```
Will yield error:
```
Import map diagnostics:
- Invalid target address "https://esm.sh/@heroicons/react@2.0.11/20/solid/?alias=react:preact/compat" for package specifier "icons-solid-20/". Package address targets must end with "/".
error: Blocked by null entry for ""icons-solid-20/""
```

Even when putting in a bogus query parameter that ends with "/", the following error is produced:
```
error: The specifier ""icons-solid-20/BeakerIcon"" backtracks above its prefix ""icons-solid-20/""
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.