Skip to content

warn if removing svelte resolve override would break a package #501

@benmccann

Description

@benmccann

Describe the problem

Right now the svelte field is resolved first. We should eventually remove this and defer to Vite which will resolve exports first

Describe the proposed solution

Add dependency on @alloc/resolve.exports to resolve the exports. If exports exist and resolve to different place than svelte field then warn.

Alternatives considered

Discussed on Discord the the maintainers group and I think this is what we arrived at. I won't bother repeating the discussion

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions