这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@oscarnewman
Copy link
Contributor

Hi there,

Not sure if this will truly be helpful or not, but wanted to try.

I've run into an issue in building out a new library with tsup where the pinned version of rollup-plugin-dts doesn't support types with negative numbers as keys, such as:

type Foo = {
 [-1]: string
}

I ran into this trying to setup a design system library with https://vanilla-extract.style.

I've setup a minimal reproduction of the issue here: https://github.com/oscarnewman/tsup-repro

In my testing, updating rollup-plugin-dts (and rollup as is required by it's new peer-dep version) fixes this issue, and the test suite passes locally for me.

We've currently just switched to running a fork with these updates at @oscarnewman/tsup but would love to help out anyone else who's also faced this issue.

@vercel
Copy link

vercel bot commented May 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tsup ✅ Ready (Inspect) Visit Preview May 19, 2022 at 8:16PM (UTC)

@oscarnewman oscarnewman changed the title [Deps] Update rollup and rollup-plugin-dts to latest versions chore(deps): Update rollup and rollup-plugin-dts to latest versions May 19, 2022
@egoist egoist merged commit 27984cf into egoist:dev May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants