Skip to content

export true doesn't normalize subpackages exports paths on Windows #558

@userquin

Description

@userquin

Reproduction link or steps

Add a subpackage export on Windows laptop enabling export: true in the tsdown.config.ts file:

screenshot using \ in the subpackage exports debug generateExports screenshot

What is expected?

Subpackage exports should use / instead separator path

What is actually happening?

Using separator path, requires applying a normalization

Any additional comments?

I'm going to send a PR to fix this bug.

In fact the generated subpackages exports are wrong: we need to handle multiple entries and group them: check core/types and core/index, maybe a side effect of this issue (?)

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions