Skip to content

Couldn't resolve workspace module when platform is "neutral" #424

@g-mero

Description

@g-mero

Reproduction link or steps

https://github.com/g-mero/tsdown-issue-workspace-no-external

run pnpm -F main build

What is expected?

should bundle workspace package correctly

What is actually happening?

[UNRESOLVED_IMPORT] Warning: Could not resolve 'utils' in src/index.ts
╭─[ src/index.ts:1:21 ]

1 │ import { foo } from "utils";
│ ───┬───
│ ╰───── Module not found, treating it as an external dependency

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions