Skip to content

TypeError when wrong --target is passed #539

@ExTBH

Description

@ExTBH

Reproduction link or steps

https://stackblitz.com/edit/github-t41mcup2?file=package.json

What is expected?

Notify the user of the bad input

What is actually happening?

Fails with a non descriptive error

Any additional comments?

Happens when tsdown is called like this

tsdown src/lambda.ts --platform=node --target=24 --outdir dist --format esm

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