Skip to content

Import Maps don't support package address targets with query parameters #41

@NicolaiSchmid

Description

@NicolaiSchmid

Reproduce:

  • Deno v1.23.3
  • import_map.json:
{
  "imports": {
      "@mui/": "https://esm.sh/@mui/material@5.9.1/?alias=react:preact/compat,react/jsx-runtime:preact/compat/jsx-runtime&deps=preact@10.8.1"
  }
}

Deno then reports back with:

Package address targets must end with "/".

I couldn't find a current code snippet, but for version 1.9.1 I found this check, which doesn't account for esm.sh alias feature, because it just checks the last character of the value string.

If you have any further questions, please let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions