Skip to content

tsdown fails to build if json files are included which have arrays at top level, failure is from rolldown dts plugin #594

@kalvenschraut

Description

@kalvenschraut

Reproduction link or steps

https://github.com/RTVision/invalid-dts-generation I just reused this repo so ignore the repo name. Code and README are updated

What is expected?

successful build

What is actually happening?

For build to not error

Image

Any additional comments?

This seems to be occuring after rolldown-plugin-dts version 0.16.10 as if i pin to that version the error doesnt occur. If I go to 0.16.11 I do see a different error but I believe that was fixed in a later version and now just left with the issue the current rolldown DTS is hitting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions