Skip to content

Support package versioning within import subpaths #398

Description

@andy-haynes

Currently @phosphor-icons/react/dist/icons/Horse resolves to version 2.1.4, which is broken. Referencing the subpath was necessary to avoid pulling in all icons, but now specifying the version must be supported in order to import the last known working version: @phosphor-icons/react@2.0.15.

However this code fetches all icons anyway:

import { Horse } from '@phosphor-icons/react@2.0.15/dist/icons/Horse';

The import path resolution should be fixed to support this, since https://esm.sh/@phosphor-icons/react@2.0.15/dist/icons/Horse does resolve to the correct package.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions